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

chunked in combination with naughty Content-Type causes 500 #56

Closed
michielbdejong opened this issue Mar 23, 2015 · 4 comments
Closed

chunked in combination with naughty Content-Type causes 500 #56

michielbdejong opened this issue Mar 23, 2015 · 4 comments
Assignees
Labels

Comments

@michielbdejong
Copy link

var https = require('https'),
    fs = require('fs');

var req = https.request({
  hostname: 'storage.5apps.com',
  port: 443,
  method: 'PUT',
  path: '/dswg/test/' + new Date().getTime().toString(),
  headers: {
    'If-None-Match': '*',
    'Content-Type': 'asdf',
    Authorization: 'Bearer e8368b5e74b7dddc62ed468fdbf13617'
  }
}, function(res) {
  console.log(res.headers);
});
fs.createReadStream('example.png').pipe(req);

Make sure your example.png is large enough to trigger chunked encoding

@michielbdejong
Copy link
Author

Run that as nodejs script, you'll see a 500 response.

@raucao
Copy link
Member

raucao commented Mar 23, 2015

Thanks for the report!

@gregkare gregkare self-assigned this Mar 23, 2015
@gregkare gregkare added the bug label Mar 23, 2015
@gregkare
Copy link
Member

Thanks @michielbdejong, we've identified the issue, I will fix it tomorrow.

@raucao
Copy link
Member

raucao commented Jan 21, 2016

This has been solved by moving away from Riak I suppose.

@raucao raucao closed this as completed Jan 21, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants