mirror of
https://github.com/commercialhaskell/stackage-server.git
synced 2026-01-11 19:58:28 +01:00
Disable custom Haddock style by default #278
This commit is contained in:
parent
2701f186ca
commit
ab8d383cd5
@ -38,7 +38,7 @@ getHaddockR snapName rest
|
||||
case docType of
|
||||
DocHtml -> do
|
||||
mstyle <- lookupGetParam "style"
|
||||
return ("text/html; charset=utf-8", mstyle == Just "plain")
|
||||
return ("text/html; charset=utf-8", mstyle /= Just "stackage")
|
||||
DocJson ->
|
||||
return ("application/jsontml; charset=utf-8", True)
|
||||
req <- parseRequest $ unpack $ makeURL snapName rest
|
||||
|
||||
Loading…
Reference in New Issue
Block a user