diff --git a/chrome/content/zotero/xpcom/server.js b/chrome/content/zotero/xpcom/server.js index f549709939..1d7867c6bd 100755 --- a/chrome/content/zotero/xpcom/server.js +++ b/chrome/content/zotero/xpcom/server.js @@ -303,10 +303,11 @@ Zotero.Server.DataListener.prototype._generateResponse = function(status, conten } } + if(contentType) { + response += "Content-Type: "+contentType+"\r\n"; + } + if(body) { - if(contentType) { - response += "Content-Type: "+contentType+"\r\n"; - } response += "\r\n"+body; } else { response += "Content-Length: 0\r\n\r\n";