Pass responseCharset to subsequent doGet calls

This commit is contained in:
aurimasv 2013-01-19 20:05:21 -06:00 committed by Aurimas Vinckevicius
parent 0eb4db7c33
commit eed6d2f22c
2 changed files with 4 additions and 3 deletions

View file

@ -576,9 +576,10 @@ Zotero.HTTP = new function() {
/**
* Handler for XMLHttpRequest state change
*
* @param {nsIXMLHttpRequest} XMLHttpRequest whose state just changed
* @param {Function} [onDone] Callback for request completion
* @param {nsIXMLHttpRequest} xmlhttp XMLHttpRequest whose state just changed
* @param {Function} [callback] Callback for request completion
* @param {String} [responseCharset] Character set to force on the response
* @param {*} [data] Data to be passed back to callback as the second argument
* @private
*/
function _stateChange(xmlhttp, callback, responseCharset, data) {

View file

@ -402,7 +402,7 @@ Zotero.Utilities.Translate.prototype.doGet = function(urls, processor, done, res
}
if(callAgain) {
me.doGet(urls, processor, done);
me.doGet(urls, processor, done, responseCharset);
} else {
if(done) {
done();