Skip to content
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

pip.index: fix crash getting Content-Type header #1047

Closed
wants to merge 1 commit into from

Conversation

davvid
Copy link
Contributor

@davvid davvid commented Jul 13, 2013

Returned headers may not always have the "Content-Type"
field available. Avoid KeyError exceptions by using
dict.get() instead of blindly grabbing the header value.

Closes #32

Returned headers may not always have the "Content-Type"
field available.  Avoid KeyError exceptions by using
dict.get() instead of blindly grabbing the header value.

Closes pypa#32
@dstufft
Copy link
Member

dstufft commented Jul 14, 2013

@qwcode Do you think this should go in 1.4? I introduced this bug in 1.4 :/

@pnasrat
Copy link
Contributor

pnasrat commented Jul 14, 2013

+1 and +1 for 1.4

@dstufft
Copy link
Member

dstufft commented Jul 15, 2013

I cherry-picked this into release-1.4. It'll get merged into dev during the periodic merging.

See bafcf59

@dstufft dstufft closed this Jul 15, 2013
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 5, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants