File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
- require ( '../common' ) ;
2
+ const common = require ( '../common' ) ;
3
3
const assert = require ( 'assert' ) ;
4
4
const http = require ( 'http' ) ;
5
5
const Countdown = require ( '../common/countdown' ) ;
@@ -13,7 +13,7 @@ const server = http.createServer((req, res) => {
13
13
// to call res.writeHead instead
14
14
res . _writeRaw ( 'HTTP/1.1 102 Processing\r\n' ) ;
15
15
res . _writeRaw ( 'Foo: Bar\r\n' ) ;
16
- res . _writeRaw ( '\r\n' ) ;
16
+ res . _writeRaw ( '\r\n' , common . mustCall ( ) ) ;
17
17
console . error ( 'Server sending full response...' ) ;
18
18
res . writeHead ( 200 , {
19
19
'Content-Type' : 'text/plain' ,
Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ const s = http.createServer(common.mustCall((req, res) => {
47
47
const exoticObj = Object . create ( null ) ;
48
48
assert . deepStrictEqual ( headers , exoticObj ) ;
49
49
assert . deepStrictEqual ( res . getHeaderNames ( ) , [ ] ) ;
50
+ assert . deepStrictEqual ( res . getRawHeaderNames ( ) , [ ] ) ;
50
51
assert . deepStrictEqual ( res . hasHeader ( 'Connection' ) , false ) ;
51
52
assert . deepStrictEqual ( res . getHeader ( 'Connection' ) , undefined ) ;
52
53
You can’t perform that action at this time.
0 commit comments