Bug 632417 Use mimetype hint for JSON in sync. r=philikon a=blocking-fennec

This commit is contained in:
Benjamin Stover 2011-02-08 13:43:35 -08:00
parent b68d59d170
commit d208b47b0c

View File

@ -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;