Index: lib/runtime/dart/html.js |
diff --git a/lib/runtime/dart/html.js b/lib/runtime/dart/html.js |
index 17d35d304cada9d780a9b7519c5255f5cef5b4f0..be6e187c0c955a473f654a93ffbbfa4829ce87d0 100644 |
--- a/lib/runtime/dart/html.js |
+++ b/lib/runtime/dart/html.js |
@@ -6100,7 +6100,7 @@ dart_library.library('dart/html', null, /* Imports */[ |
}, dart.void, [core.String, core.String])); |
let formData = parts[dartx.join]('&'); |
if (requestHeaders == null) { |
- requestHeaders = dart.map(); |
+ requestHeaders = dart.map({}, core.String, core.String); |
} |
requestHeaders.putIfAbsent('Content-Type', dart.fn(() => 'application/x-www-form-urlencoded; charset=UTF-8', core.String, [])); |
return HttpRequest.request(url, {method: 'POST', withCredentials: withCredentials, responseType: responseType, requestHeaders: requestHeaders, sendData: formData, onProgress: onProgress}); |
@@ -6177,7 +6177,7 @@ dart_library.library('dart/html', null, /* Imports */[ |
} |
} |
get responseHeaders() { |
- let headers = dart.map(); |
+ let headers = dart.map({}, core.String, core.String); |
let headersString = this.getAllResponseHeaders(); |
if (headersString == null) { |
return headers; |