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

Fix default headers (#105, #168) #183

Merged
merged 3 commits into from
Nov 15, 2017

Conversation

ielcoro
Copy link
Collaborator

@ielcoro ielcoro commented Nov 13, 2017

This pull requests reverts the behaviour introduced in #105 and #168 that broke all multipart requests by setting the default Content-Type header to 'application/json', preventing the client to automatically calculating multipart data boundary.

This pull requests removes the default configuration in FetchConfig and instead, approaches the problem by explicitly setting the needed headers for each request in the library, so that the library does not interfere with host applications.

@ielcoro
Copy link
Collaborator Author

ielcoro commented Nov 15, 2017

@paulvanbladel Should I be worried about the non passing CI checks? Looks like some misconfiguration in Travis tasks?

@paulvanbladel
Copy link
Owner

no worries :)

@ielcoro ielcoro merged commit e6008c1 into paulvanbladel:master Nov 15, 2017
@ielcoro
Copy link
Collaborator Author

ielcoro commented Nov 15, 2017

@paulvanbladel Done. I suggest updating the npm package as this can be considered a high impact hotfix.

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.

2 participants