Trim Amazon XML response as possible fix to a user's error
This commit is contained in:
parent
16d595ca67
commit
7f12d2c095
1 changed files with 1 additions and 1 deletions
|
@ -571,7 +571,7 @@ Zotero.Sync.Storage.Session.ZFS.prototype._getFileUploadParameters = function (i
|
|||
|
||||
try {
|
||||
// Strip XML declaration and convert to E4X
|
||||
var xml = new XML(req.responseText.replace(/<\?xml.*\?>/, ''));
|
||||
var xml = new XML(Zotero.Utilities.prototype.trim(req.responseText.replace(/<\?xml.*\?>/, '')));
|
||||
}
|
||||
catch (e) {
|
||||
self.onError("Invalid response retrieving file upload parameters");
|
||||
|
|
Loading…
Reference in a new issue