ant-http
Advanced tools
Comparing version 1.1.3 to 1.1.5
@@ -239,2 +239,3 @@ const http = require('http'); | ||
} | ||
console.log(formData); | ||
} | ||
@@ -246,3 +247,3 @@ | ||
r.options.headers['Content-Type'] += `boundary=${bdy}`; | ||
r.options.headers['Content-Length'] = Buffer.byteLength(payload) + Buffer.byteLength(end_data) + fs.statSync(r.pathname).size; | ||
r.options.headers['Content-Length'] = Buffer.byteLength(payload) + Buffer.byteLength(end_data) + fs.statSync(r.pathname).size + Buffer.byteLength(formData); | ||
@@ -249,0 +250,0 @@ var http_request = r.httpr.request(r.options, (res) => { |
{ | ||
"name": "ant-http", | ||
"version": "1.1.3", | ||
"version": "1.1.5", | ||
"description": "simple http/https request lib", | ||
@@ -5,0 +5,0 @@ "main": "anthttp.js", |
9286
237