Inconsistent Transfer Encoding for form-urlencoded post requests #489

very opened this Issue Mar 23, 2013 · 1 comment


None yet
2 participants

very commented Mar 23, 2013

Calling Request.prototype.form with an object doesn't set the content-length header. So the request gets sent with Transfer-Encoding: chunked:, callback).form({ // Transfer-Encoding: chunked
    user: username,
    pass: password

But when you already specify the form data in the options argument the content length gets set correctly and the request is not chunked:, {
    form: { // not chunked
        user: username,
        pass: password
}, callback);

mikeal commented Aug 27, 2014

Is this still an issue?

This is so old I'm closing, if it is actually still an issue just let me know and I'll re-open.

mikeal closed this Aug 27, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment