[Pkg-javascript-commits] [node-stream-http] 114/208: Use .buffer to comply with buffer at 4 and browserify at 13
Bastien Roucariès
rouca at moszumanska.debian.org
Sun Aug 13 13:39:34 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-stream-http.
commit 8b9f5a43c180ef6333974a4edf2838976de6721e
Author: Karissa McKelvey <krmckelv at gmail.com>
Date: Tue Jan 12 12:30:39 2016 -0800
Use .buffer to comply with buffer at 4 and browserify at 13
---
lib/request.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/request.js b/lib/request.js
index ce4179a..c784566 100644
--- a/lib/request.js
+++ b/lib/request.js
@@ -96,7 +96,7 @@ ClientRequest.prototype._onFinish = function () {
if (opts.method === 'POST' || opts.method === 'PUT' || opts.method === 'PATCH') {
if (capability.blobConstructor) {
body = new global.Blob(self._body.map(function (buffer) {
- return buffer.toArrayBuffer()
+ return buffer.buffer
}), {
type: (headersObj['content-type'] || {}).value || ''
})
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-stream-http.git
More information about the Pkg-javascript-commits
mailing list