commit cac01100a6f9dbb4a6b9612cd415ad0ffca1da0b
parent 09d4960e1f2faa18128fa4313acefdc8fecc088b
Author: Dan Stillman <dstillman@zotero.org>
Date: Tue, 28 Mar 2017 02:17:15 -0400
Avoid XML Parsing Error in Firefox console for ping requests
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/chrome/content/zotero/xpcom/server_connector.js b/chrome/content/zotero/xpcom/server_connector.js
@@ -799,7 +799,7 @@ Zotero.Server.Connector.Ping.prototype = {
'<title>Zotero Connector Server is Available</title></head>' +
'<body>Zotero Connector Server is Available</body></html>'];
} else {
- return [200];
+ return [200, 'text/plain', ''];
}
}
}