1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80
|
From 399a4dc00e3840aceda1563b6aff7ca1c08e6428 Mon Sep 17 00:00:00 2001
From: Douglas Christopher Wilson <doug@somethingdoug.com>
Date: Sun, 4 Jun 2023 16:28:24 -0400
Subject: [PATCH] build: support Node.js 20.x
---
--- a/test/test.js
+++ b/test/test.js
@@ -131,6 +131,7 @@
var client = net.connect(server.address().port);
client.write(
'POST / HTTP/1.1\r\n' +
+ 'Host: localhost\r\n' +
'Content-Length: 70\r\n' +
'Content-Type: multipart/form-data; boundary=foo\r\n\r\n')
client.end();
@@ -172,6 +173,7 @@
client = net.connect(server.address().port)
client.write(
'POST / HTTP/1.1\r\n' +
+ 'Host: localhost\r\n' +
'Content-Length: ' + Buffer.byteLength(body) + '\r\n' +
'Content-Type: multipart/form-data; boundary=foo\r\n\r\n' +
body)
@@ -533,6 +535,7 @@
client = net.connect(server.address().port);
client.write('POST /upload HTTP/1.1\r\n' +
+ 'Host: localhost\r\n' +
'Content-Length: 728\r\n' +
'Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryvfUZhxgsZDO7FXLF\r\n' +
'\r\n' +
@@ -579,6 +582,7 @@
client = net.connect(server.address().port);
client.write('POST /upload HTTP/1.1\r\n' +
+ 'Host: localhost\r\n' +
'Content-Length: 678\r\n' +
'Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryvfUZhxgsZDO7FXLF\r\n' +
'\r\n' +
@@ -646,6 +650,7 @@
client = net.connect(server.address().port);
client.write('POST /upload HTTP/1.1\r\n' +
+ 'Host: localhost\r\n' +
'Content-Length: 726\r\n' +
'Content-Type: multipart/form-data; boundary=----WebKitFormBoundaryvfUZhxgsZDO7FXLF\r\n' +
'\r\n' +
@@ -707,6 +712,7 @@
client.write(
'POST /upload HTTP/1.1\r\n' +
+ 'Host: localhost\r\n' +
'Accept: */*\r\n' +
'Content-Type: multipart/form-data; boundary="893e5556-f402-4fec-8180-c59333354c6f"\r\n' +
'Content-Length: 187\r\n' +
@@ -1252,6 +1258,7 @@
var client = net.connect(server.address().port);
client.write(
'POST / HTTP/1.1\r\n' +
+ 'Host: localhost\r\n' +
'Content-Length: 186\r\n' +
'Content-Type: multipart/form-data; boundary=--WebKitFormBoundaryvfUZhxgsZDO7FXLF\r\n' +
'\r\n' +
@@ -1309,6 +1316,7 @@
var client = net.connect(server.address().port);
client.end(
'POST / HTTP/1.1\r\n' +
+ 'Host: localhost\r\n' +
'Content-Length: 174\r\n' +
'Content-Type: multipart/form-data; boundary=--bounds\r\n' +
'\r\n' +
@@ -1349,6 +1357,7 @@
client.write(
'POST /upload HTTP/1.1\r\n' +
+ 'Host: localhost\r\n' +
'Accept: */*\r\n' +
'Content-Type: multipart/form-data; boundary="893e5556-f402-4fec-8180-c59333354c6f"\r\n' +
'Content-Length: 217\r\n' +
|