lightning-request-net
Advanced tools
Comparing version 0.1.1-beta.1 to 0.1.1-beta.2
{ | ||
"name": "lightning-request-net", | ||
"version": "0.1.1-beta.1", | ||
"version": "0.1.1-beta.2", | ||
"description": "Lightweight Node.js HTTP client based on net.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -82,3 +82,3 @@ const net = require('net'); | ||
const zeroIndex = chunk.indexOf('\r\n0\r\n'); | ||
const zeroIndex = chunk.lastIndexOf('\r\n0'); | ||
if ((this.bodySize && this.bodySize >= this.contentLength) || zeroIndex > -1) { | ||
@@ -85,0 +85,0 @@ this.successCall(this.data); |
@@ -57,3 +57,3 @@ const CRLF = '\r\n'; | ||
} | ||
const idx2 = responseBodyText.indexOf('\r\n0'); | ||
const idx2 = responseBodyText.lastIndexOf('\r\n0'); | ||
if (idx2 > -1) { | ||
@@ -60,0 +60,0 @@ responseBodyText = responseBodyText.slice(0, idx2); |
27190