Fix CORS exception (fixes #964)

This commit is contained in:
Joshua Granick
2017-04-19 15:52:11 -07:00
committed by GitHub
parent 8d11d491db
commit 1200c1a509

View File

@@ -109,7 +109,7 @@ class HTML5HTTPRequest {
}
if (!hasContentType) {
if (!hasContentType && parent.contentType != null) {
request.setRequestHeader ("Content-Type", parent.contentType);
@@ -381,4 +381,4 @@ class HTML5HTTPRequest {
var promise:Dynamic;
var uri:String;
}
}