From d208b47b0c971c4ee2b35362048104f012b20bc6 Mon Sep 17 00:00:00 2001 From: Benjamin Stover Date: Tue, 8 Feb 2011 13:43:35 -0800 Subject: [PATCH] Bug 632417 Use mimetype hint for JSON in sync. r=philikon a=blocking-fennec --- services/sync/modules/util.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/sync/modules/util.js b/services/sync/modules/util.js index c367e819059b..a78b7b0b349a 100644 --- a/services/sync/modules/util.js +++ b/services/sync/modules/util.js @@ -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;