File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -72,13 +72,15 @@ promise_test(async (test) => {
72
72
const request = new Request ( '' , {
73
73
body : new ReadableStream ( ) ,
74
74
method : 'POST' ,
75
+ duplex,
75
76
} ) ;
76
77
77
78
assert_equals ( request . headers . get ( 'Content-Type' ) , null , `Request should not have a content-type set` ) ;
78
79
79
80
const response = await fetch ( 'data:a/a;charset=utf-8,test' , {
80
81
method : 'POST' ,
81
82
body : new ReadableStream ( ) ,
83
+ duplex,
82
84
} ) ;
83
85
84
86
assert_equals ( await response . text ( ) , 'test' , `Response has correct body` ) ;
@@ -88,6 +90,7 @@ promise_test(async (test) => {
88
90
const request = new Request ( 'data:a/a;charset=utf-8,test' , {
89
91
body : new ReadableStream ( ) ,
90
92
method : 'POST' ,
93
+ duplex,
91
94
} ) ;
92
95
93
96
assert_equals ( request . headers . get ( 'Content-Type' ) , null , `Request should not have a content-type set` ) ;
You can’t perform that action at this time.
0 commit comments