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

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

Closed
wants to merge 2 commits into from

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 functionality fails.
@tbosch tbosch self-assigned this Oct 9, 2014
@mary-poppins
Copy link

I'm sorry, but I wasn't able to verify your Contributor License Agreement (CLA) signature. CLA signature is required for any code contributions to AngularJS.

Please sign our CLA and ensure that the CLA signature email address and the email address in this PR's commits match.

If you signed the CLA as a corporation, please let us know the company's name.

Thanks a bunch!

PS: If you signed the CLA in the past then most likely the email addresses don't match. Please sign the CLA again or update the email address in the commit of this PR.
PS2: If you are a Googler, please sign the CLA as well to simplify the CLA verification process.

tbosch pushed a commit to tbosch/angular.js that referenced this pull request Oct 9, 2014
7b6c1d0 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 functionality fails.

Closes angular#9528
@tbosch
Copy link
Contributor

tbosch commented Oct 9, 2014

Nice, thanks!
Will merge soon... Could you sign the CLA please?

@tbosch
Copy link
Contributor

tbosch commented Oct 9, 2014

Note: Created a new PR to simplify you change a little but...

@brocksamson
Copy link
Author

I definitely filled out the cla, maybe I missed a confirmation dialog or similar, will do it again now.

@brocksamson
Copy link
Author

ok cla was filled out again. let me know if you don't get it.

tbosch pushed a commit to tbosch/angular.js that referenced this pull request Oct 9, 2014
7b6c1d0 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 functionality fails.

Closes angular#9528
@IgorMinar
Copy link
Contributor

the CLA verification failed because the commit signature contains different email address as the one used for CLA. You can see the email used in the commit here: https://github.com/angular/angular.js/pull/9528.patch

@brocksamson
Copy link
Author

You're right, I accidentally used my corporate email with that commit. I'll create a new pull request with the proper email address.

@brocksamson brocksamson deleted the patch-head-transform branch October 10, 2014 15:49
tbosch pushed a commit that referenced this pull request Oct 10, 2014
7b6c1d0 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 functionality fails.

Closes #9528
Closes #9529
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.

None yet

5 participants