2
0
鏡像自 https://github.com/therootcompany/request.js synced 2025-06-30 20:06:33 +00:00

v1.1.5: fix default to using Content-Length for posts

This commit is contained in:
AJ ONeal 2018-07-06 20:27:20 -06:00
父節點 d5af2ae5fe
當前提交 e5bad96279
共有 2 個檔案被更改,包括 2 行新增2 行删除

查看文件

@ -172,7 +172,7 @@ function setDefaults(defs) {
if (_body) { if (_body) {
// Most APIs expect (or require) Content-Length except in the case of multipart uploads // Most APIs expect (or require) Content-Length except in the case of multipart uploads
// chunked is generally only well-supported downstream // 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 // TODO support unix sockets

查看文件

@ -1,6 +1,6 @@
{ {
"name": "@coolaj86/urequest", "name": "@coolaj86/urequest",
"version": "1.1.4", "version": "1.1.5",
"description": "A lightweight drop-in replacement for request", "description": "A lightweight drop-in replacement for request",
"main": "index.js", "main": "index.js",
"directories": { "directories": {