Nest response JSON more shallowly
This commit is contained in:
@@ -295,9 +295,6 @@ csvMT = "text/csv"
|
||||
jsonH :: Header
|
||||
jsonH = (hContentType, jsonMT)
|
||||
|
||||
textH :: Header
|
||||
textH = (hContentType, "text/plain")
|
||||
|
||||
contentTypeForAccept :: Maybe BS.ByteString -> Maybe BS.ByteString
|
||||
contentTypeForAccept accept
|
||||
| isNothing accept || hasJson = Just jsonMT
|
||||
|
||||
Reference in New Issue
Block a user