File tree Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Expand file tree Collapse file tree 1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -153,11 +153,11 @@ export class XMLHttpRequestSham {
153
153
154
154
for ( headerName in headers ) {
155
155
parsedHeaders [ headerName . toLowerCase ( ) ] = parsedHeaders [
156
- headerName . toLowerCase ( )
157
- ]
156
+ headerName . toLowerCase ( )
157
+ ]
158
158
? [ parsedHeaders [ headerName . toLowerCase ( ) ] , headers [ headerName ] ] . flat (
159
- 1
160
- )
159
+ 1 ,
160
+ )
161
161
: headers [ headerName ] ;
162
162
}
163
163
@@ -268,12 +268,11 @@ export class XMLHttpRequestSham {
268
268
return xhr . onreadystatechange ( ) ;
269
269
} else {
270
270
try {
271
- const body =
272
- typeof options . requestBody === "object" &&
273
- ! ( options . requestBody instanceof FormData ) &&
274
- options . requestBody !== null
275
- ? JSON . stringify ( options . requestBody )
276
- : options . requestBody ;
271
+ const body = typeof options . requestBody === "object" &&
272
+ ! ( options . requestBody instanceof FormData ) &&
273
+ options . requestBody !== null
274
+ ? JSON . stringify ( options . requestBody )
275
+ : options . requestBody ;
277
276
278
277
// We set the fetch promise into a polyfill promise cache
279
278
// so that superdeno can await these promises before ending.
You can’t perform that action at this time.
0 commit comments