Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

fix($http): don't run transformData on HEAD methods #9555

Closed

Conversation

brocksamson
Copy link

7b6c1d0 indadvertantly created this issue by using Content-Type to
determine when to run fromJson. Because HEAD methods do not contain
a body but are supposed to return the Content-Type header that would
have been returned if it was a GET this created a bug in HEAD requests.

7b6c1d0 indadvertantly created this issue by using Content-Type to
determine when to run fromJson. Because HEAD methods do not contain
a body but are supposed to return the Content-Type header that would
have been returned if it was a GET this created a bug in HEAD requests.
@caitp
Copy link
Contributor

caitp commented Oct 10, 2014

This looks like a dupe of #9529 to me --- we're extending #9529 to handle the case of a 204 response as well, but maybe if you get that done faster we could land this one first? I dunno

@caitp
Copy link
Contributor

caitp commented Oct 10, 2014

@tbosch / @IgorMinar you can close this one if you're confident the other PR will land first

@brocksamson
Copy link
Author

+1 for me for the 204 no content version, seems like that will cover a few more scenarios. I'll leave this open for now, but feel free to close it if you choose to go the other way.

@tbosch
Copy link
Contributor

tbosch commented Oct 10, 2014

Closing this as we will have a more general handling...

@tbosch tbosch closed this Oct 10, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants