Skip to content

Fixing #1900 JS SDK file upload #1935

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 4 commits into from
May 31, 2016
Merged

Fixing #1900 JS SDK file upload #1935

merged 4 commits into from
May 31, 2016

Conversation

blacha
Copy link
Contributor

@blacha blacha commented May 28, 2016

JS SDK file upload uses req.body._ContentType to specify the upload content type

JS SDK file upload uses req.body._ContentType to specify the upload content type
@ghost
Copy link

ghost commented May 28, 2016

@blacha updated the pull request.

@ghost
Copy link

ghost commented May 28, 2016

@blacha updated the pull request.

@codecov-io
Copy link

codecov-io commented May 28, 2016

Current coverage is 91.91%

Merging #1935 into master will increase coverage by <.01%

  1. 3 files (not in diff) in src were modified. more
    • Misses +2
    • Hits +67
@@             master      #1935   diff @@
==========================================
  Files            91         91          
  Lines          6396       6468    +72   
  Methods        1097       1118    +21   
  Messages          0          0          
  Branches       1340       1369    +29   
==========================================
+ Hits           5875       5945    +70   
- Misses          521        523     +2   
  Partials          0          0          

Powered by Codecov. Last updated by 1487a73...1a8787a

@ghost
Copy link

ghost commented May 29, 2016

@blacha updated the pull request.

@flovilmart
Copy link
Contributor

Awesome!

@flovilmart flovilmart merged commit 3997b1a into parse-community:master May 31, 2016
@@ -84,6 +84,10 @@ function handleParseHeaders(req, res, next) {
info.masterKey = req.body._MasterKey;
delete req.body._MasterKey;
}
if (req.body._ContentType) {
req.headers['content-type'] = req.body._ContentType;
delete req.body_contentType;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this be body._ContentType?

@flovilmart
Copy link
Contributor

Yep you're right! I'll patch

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