ant-http
Advanced tools
Comparing version 1.3.1 to 1.3.2
@@ -126,3 +126,3 @@ const http = require('http'); | ||
if (options.toStream !== undefined) { | ||
options.toStream.write(data, {encoding : options.encoding}); | ||
options.toStream.write(Buffer.from(data, 'binary')); | ||
} | ||
@@ -204,3 +204,3 @@ | ||
if (options.toStream !== undefined) { | ||
options.toStream.write(data, {encoding : options.encoding}); | ||
options.toStream.write(Buffer.from(data, 'binary')); | ||
} | ||
@@ -207,0 +207,0 @@ |
{ | ||
"name": "ant-http", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "simple http/https request lib", | ||
@@ -5,0 +5,0 @@ "main": "anthttp.js", |
12552