We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d11840c commit 23cd934Copy full SHA for 23cd934
test/async-hooks/test-httpparser.response.js
@@ -9,7 +9,6 @@ const { checkInvocations } = require('./hook-checks');
9
const binding = process.binding('http_parser');
10
const HTTPParser = binding.HTTPParser;
11
12
-const CRLF = '\r\n';
13
const RESPONSE = HTTPParser.RESPONSE;
14
const kOnHeadersComplete = HTTPParser.kOnHeadersComplete | 0;
15
const kOnBody = HTTPParser.kOnBody | 0;
@@ -19,10 +18,10 @@ const hooks = initHooks();
19
18
hooks.enable();
20
21
const request = Buffer.from(
22
- 'HTTP/1.1 200 OK' + CRLF +
23
- 'Content-types: text/plain' + CRLF +
24
- 'Content-Length: 4' + CRLF +
25
- CRLF +
+ 'HTTP/1.1 200 OK\r\n' +
+ 'Content-Type: text/plain\r\n' +
+ 'Content-Length: 4\r\n' +
+ '\r\n' +
26
'pong'
27
);
28
0 commit comments