Trim Amazon XML response as possible fix to a user's error
This commit is contained in:
parent
16d595ca67
commit
7f12d2c095
|
@ -571,7 +571,7 @@ Zotero.Sync.Storage.Session.ZFS.prototype._getFileUploadParameters = function (i
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// Strip XML declaration and convert to E4X
|
// 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) {
|
catch (e) {
|
||||||
self.onError("Invalid response retrieving file upload parameters");
|
self.onError("Invalid response retrieving file upload parameters");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user