summaryrefslogtreecommitdiff
path: root/test/parallel/test-http-client-upload-buf.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/parallel/test-http-client-upload-buf.js')
-rw-r--r--test/parallel/test-http-client-upload-buf.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-http-client-upload-buf.js b/test/parallel/test-http-client-upload-buf.js
index 57d258671c..113ab750e2 100644
--- a/test/parallel/test-http-client-upload-buf.js
+++ b/test/parallel/test-http-client-upload-buf.js
@@ -41,7 +41,7 @@ server.on('listening', function() {
});
});
- req.write(new Buffer(N));
+ req.write(Buffer.allocUnsafe(N));
req.end();
});