stream-http
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -247,6 +247,3 @@ // var Base64 = require('Base64') | ||
if (data) | ||
stream.Writable.push.call(self, data, encoding) | ||
stream.Writable.prototype.end.call(self, cb) | ||
stream.Writable.prototype.end.call(self, data, encoding, cb) | ||
} | ||
@@ -253,0 +250,0 @@ |
{ | ||
"name": "stream-http", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "Streaming http in the browser", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -28,2 +28,22 @@ var Buffer = require('buffer').Buffer | ||
req.end() | ||
}) | ||
test('post text with data in end()', function (t) { | ||
var req = http.request({ | ||
path: '/echo', | ||
method: 'POST' | ||
}, function (res) { | ||
var buffers = [] | ||
res.on('end', function () { | ||
t.ok(reference.equals(Buffer.concat(buffers)), 'echoed contents match') | ||
t.end() | ||
}) | ||
res.on('data', function (data) { | ||
buffers.push(data) | ||
}) | ||
}) | ||
req.end(reference) | ||
}) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
68749
992