File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -677,7 +677,6 @@ tap.test('headers that might cause a ReDoS', (t) => {
677677 t . end ( )
678678} )
679679
680-
681680tap . test ( 'Headers.prototype.getSetCookie' , ( t ) => {
682681 t . test ( 'Mutating the returned list does not affect the set-cookie list' , ( t ) => {
683682 const h = new Headers ( [
@@ -694,4 +693,4 @@ tap.test('Headers.prototype.getSetCookie', (t) => {
694693 } )
695694
696695 t . end ( )
697- } )
696+ } )
Original file line number Diff line number Diff line change 33const { test } = require ( 'tap' )
44const { Client } = require ( '..' )
55const { createServer } = require ( 'http' )
6- const EE = require ( 'events' )
76
87test ( 'CRLF Injection in Nodejs ‘undici’ via host' , ( t ) => {
98 t . plan ( 1 )
@@ -17,15 +16,15 @@ test('CRLF Injection in Nodejs ‘undici’ via host', (t) => {
1716 const client = new Client ( `http://localhost:${ server . address ( ) . port } ` )
1817 t . teardown ( client . close . bind ( client ) )
1918
20- const unsanitizedContentTypeInput = '12 \r\n\r\naaa:aaa'
19+ const unsanitizedContentTypeInput = '12 \r\n\r\naaa:aaa'
2120
2221 try {
2322 const { body } = await client . request ( {
2423 path : '/' ,
2524 method : 'POST' ,
2625 headers : {
2726 'content-type' : 'application/json' ,
28- ' host' : unsanitizedContentTypeInput
27+ host : unsanitizedContentTypeInput
2928 } ,
3029 body : 'asd'
3130 } )
You can’t perform that action at this time.
0 commit comments