samt / http-post

This utility extends the functionality of the 'http' library in stock node.js. It returns a post request function in a very similar way to node's http.get(). It supports both normal urlencoded payloads and multipart/form-data.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Content-Type header not being sent with files

samt opened this issue · comments

It would be nice to be able to send the Content-Type header with each file, even though I've yet to test this with a server that rejects the request or mutilates the file due to its absence.

Second this. I'm actually looking for content-type on my server and so this client doesn't work for me.

Or if there was a way to manually set it and pass it in that would be great.

I am trying to change the content-type for simple POST call to json and it is not working.