lightning-request-net
Advanced tools
Comparing version 0.0.1-beta.0 to 0.0.1-beta.1
@@ -71,3 +71,3 @@ const net = require('net'); | ||
const idx = chunk.indexOf('\r\n\r\n'); | ||
this.bodySize += chunk.length - idx - 4; | ||
this.bodySize += Buffer.byteLength(chunk.length) - idx - 4; | ||
@@ -100,3 +100,3 @@ if (this.bodySize >= this.contentLength) { | ||
this.data += chunk; | ||
this.bodySize += chunk.length; | ||
this.bodySize += Buffer.byteLength(chunk.length); | ||
if (this.bodySize >= this.contentLength) { | ||
@@ -103,0 +103,0 @@ this.successCall(this.data); |
{ | ||
"name": "lightning-request-net", | ||
"version": "0.0.1-beta.0", | ||
"version": "0.0.1-beta.1", | ||
"description": "Lightweight Node.js HTTP client based on net.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
20566