From e5bad96279f647bd5830cf638c5e06cf56e4eb7f Mon Sep 17 00:00:00 2001 From: AJ ONeal Date: Fri, 6 Jul 2018 20:27:20 -0600 Subject: [PATCH] v1.1.5: fix default to using Content-Length for posts --- index.js | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 22585d3..1798b96 100644 --- a/index.js +++ b/index.js @@ -172,7 +172,7 @@ function setDefaults(defs) { if (_body) { // Most APIs expect (or require) Content-Length except in the case of multipart uploads // chunked is generally only well-supported downstream - //finalOpts.headers['Content-Length'] = _body.byteLength || _body.length; + finalOpts.headers['Content-Length'] = _body.byteLength || _body.length; } // TODO support unix sockets diff --git a/package.json b/package.json index 2098082..03294de 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@coolaj86/urequest", - "version": "1.1.4", + "version": "1.1.5", "description": "A lightweight drop-in replacement for request", "main": "index.js", "directories": {