sailthru / sailthru-node-client

Sailthru Node.js client
http://docs.sailthru.com
MIT License
17 stars 15 forks source link

Problem with Multpart Form Requests for Job API #9

Closed beum closed 10 years ago

beum commented 10 years ago

The SailthruClient.prototype.apiPostMultiPart method should include the file size in its call to restler.file() otherwise the API gives an HTTP status "411 Length Required" error message because the "Content-Length" header is not set properly.

This can be fixed by:

https://github.com/sailthru/sailthru-node-client/pull/8

Thanks!

beum commented 10 years ago

Pull request #10 solves this issue.

sinneduy commented 10 years ago

@beum cool - it isn't yet merged, but I'll let you know when it is