Skip to content

Commit 8b9f5a4

Browse files
committed
Use .buffer to comply with buffer@4 and browserify@13
1 parent 3c8b443 commit 8b9f5a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/request.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ ClientRequest.prototype._onFinish = function () {
9696
if (opts.method === 'POST' || opts.method === 'PUT' || opts.method === 'PATCH') {
9797
if (capability.blobConstructor) {
9898
body = new global.Blob(self._body.map(function (buffer) {
99-
return buffer.toArrayBuffer()
99+
return buffer.buffer
100100
}), {
101101
type: (headersObj['content-type'] || {}).value || ''
102102
})

0 commit comments

Comments
 (0)