2
0
zrcadlo https://github.com/therootcompany/request.js synchronizováno 2025-10-23 08:42:51 +00:00

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

Tento commit je obsažen v:
AJ ONeal 2018-07-06 20:27:20 -06:00
rodič d5af2ae5fe
revize e5bad96279
2 změnil soubory, kde provedl 2 přidání a 2 odebrání

Zobrazit soubor

@ -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

Zobrazit soubor

@ -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": {