File tree 1 file changed +3
-0
lines changed
1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change @@ -59,13 +59,15 @@ promise_test(async (test) => {
59
59
const request = new Request ( '' , {
60
60
body : new ReadableStream ( ) ,
61
61
method : 'POST' ,
62
+ duplex,
62
63
} ) ;
63
64
64
65
assert_equals ( request . headers . get ( 'Content-Type' ) , null , `Request should not have a content-type set` ) ;
65
66
66
67
const response = await fetch ( 'data:a/a;charset=utf-8,test' , {
67
68
method : 'POST' ,
68
69
body : new ReadableStream ( ) ,
70
+ duplex,
69
71
} ) ;
70
72
71
73
assert_equals ( await response . text ( ) , 'test' , `Response has correct body` ) ;
@@ -75,6 +77,7 @@ promise_test(async (test) => {
75
77
const request = new Request ( 'data:a/a;charset=utf-8,test' , {
76
78
body : new ReadableStream ( ) ,
77
79
method : 'POST' ,
80
+ duplex,
78
81
} ) ;
79
82
80
83
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