-
-
Notifications
You must be signed in to change notification settings - Fork 11k
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
Fixing #184 Content type removed if data is false #195
Conversation
No need to run build until new version is released. Thanks for the PR! |
Fixing #184 Content type removed if data is false
Congrats @vandosant on your first PR. That's awesome! Question: Do you really want to remove the Content-Type header if Seems like you might want this to be:
|
I had wondered the same. This feels the most backwards compatible since previously anything falsey would remove the |
The old code would also remove the |
Oh, and |
By the way, I don't feel strongly about this. You should not make a change just because I made these comments. I won't have my feelings hurt no matter what you choose. :) |
You're right. Maybe we should remove the check for |
After looking at the code history it's been doing At this point in the code the request data has already been transformed. So the data is one of either a primitive, I suspect that this condition is for one of two reasons:
I think we are okay to remove the null check and just handle |
👍 |
Would hate to replace one bug with another! I was thinking the null check was overkill and might have side effects. Thanks for catching it. |
... and there are indeed side effects. See: #362 |
Should I run grunt build to bundle a new source?