feat: add Content-Length response header
This commit is contained in:
committed by
Steve Chavez
parent
98fcbedca5
commit
57ef9988a5
@@ -281,6 +281,9 @@ noBlankHeader = notElem mempty
|
||||
noProfileHeader :: [Header] -> Bool
|
||||
noProfileHeader headers = isNothing $ find ((== "Content-Profile") . fst) headers
|
||||
|
||||
notZeroContentLength :: [Header] -> Bool
|
||||
notZeroContentLength headers = maybe False (/= "0") $ lookup hContentLength headers
|
||||
|
||||
authHeader :: BS.ByteString -> BS.ByteString -> Header
|
||||
authHeader typ creds =
|
||||
(hAuthorization, typ <> " " <> creds)
|
||||
|
||||
Reference in New Issue
Block a user