Review fix
This commit is contained in:
parent
0789682cf8
commit
81c3589624
1 changed files with 1 additions and 1 deletions
|
@ -276,7 +276,7 @@ instance ( AllCTRender ctypes a
|
||||||
Right output -> do
|
Right output -> do
|
||||||
let accH = fromMaybe "*/*" $ lookup hAccept $ requestHeaders request
|
let accH = fromMaybe "*/*" $ lookup hAccept $ requestHeaders request
|
||||||
case handleAcceptH (Proxy :: Proxy ctypes) (AcceptHeader accH) output of
|
case handleAcceptH (Proxy :: Proxy ctypes) (AcceptHeader accH) output of
|
||||||
Nothing -> responseLBS (mkStatus 406 "") [] ""
|
Nothing -> responseLBS (mkStatus 406 "Not Acceptable") [] ""
|
||||||
Just (contentT, body) -> responseLBS ok200 [ ("Content-Type"
|
Just (contentT, body) -> responseLBS ok200 [ ("Content-Type"
|
||||||
, cs contentT)] body
|
, cs contentT)] body
|
||||||
Left (status, message) ->
|
Left (status, message) ->
|
||||||
|
|
Loading…
Reference in a new issue