Skip to content

Allow uploading files without Content-Type. #579

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

Merged
merged 1 commit into from
Feb 22, 2016

Conversation

nlutsenko
Copy link
Contributor

Looks like our SDKs might be uploading files without Content-Type header, which is valid, since we want the server to automatically pick a content type for us.
Remove the restriction by using function instead of a string for body parser type validation (any other ideas on how to remove content-type restriction there are very very welcome).
Also added test that validates that this works now.

Fixes #136

@nlutsenko nlutsenko force-pushed the nlutsenko.files.contentType branch from a41bfe3 to 966d10c Compare February 22, 2016 22:08
@facebook-github-bot
Copy link

@nlutsenko updated the pull request.

@drew-gross
Copy link
Contributor

LGTM assuming tests pass

@nlutsenko nlutsenko assigned nlutsenko and unassigned gfosco Feb 22, 2016
nlutsenko added a commit that referenced this pull request Feb 22, 2016
Allow uploading files without Content-Type.
@nlutsenko nlutsenko merged commit 8ce8e2b into master Feb 22, 2016
@nlutsenko nlutsenko deleted the nlutsenko.files.contentType branch February 22, 2016 22:44
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.

4 participants