Skip to content

make the chunked transfer-encoding case-insensitive #303

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 15, 2018

Conversation

cleverca22
Copy link
Contributor

No description provided.

Copy link
Owner

@snoyberg snoyberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you update the changelog and make a minor version bump?

@@ -87,7 +89,7 @@ getResponse :: ConnRelease
getResponse connRelease timeout' req@(Request {..}) conn cont = do
StatusHeaders s version hs <- parseStatusHeaders conn timeout' cont
let mcl = lookup "content-length" hs >>= readDec . S8.unpack
isChunked = ("transfer-encoding", "chunked") `elem` hs
isChunked = ("transfer-encoding", mk "chunked") `elem` map (second mk) hs
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps it would be better to import Data.CaseInsensitive qualified, as the documentation suggests?

@snoyberg snoyberg merged commit 6a182a5 into snoyberg:master Apr 15, 2018
@cleverca22 cleverca22 deleted the fix-Chunked-encoding branch April 15, 2018 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants