mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-04 21:18:35 +00:00
Bug 632417 Use mimetype hint for JSON in sync. r=philikon a=blocking-fennec
This commit is contained in:
parent
b68d59d170
commit
d208b47b0c
@ -1112,7 +1112,10 @@ let Utils = {
|
||||
return;
|
||||
}
|
||||
|
||||
NetUtil.asyncFetch(file, function (is, result) {
|
||||
let channel = NetUtil.newChannel(file);
|
||||
channel.contentType = "application/json";
|
||||
|
||||
NetUtil.asyncFetch(channel, function (is, result) {
|
||||
if (!Components.isSuccessCode(result)) {
|
||||
callback.call(that);
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user