file-upload: Correctly handle error responses for HTTP2
Signed-off-by: Jakub Onderka <ahoj@jakubonderka.cz>
This commit is contained in:
parent
847ee4041a
commit
296ffc7d34
|
@ -345,7 +345,7 @@ OC.FileUpload.prototype = {
|
|||
*/
|
||||
getResponse: function() {
|
||||
var response = this.data.response();
|
||||
if (response.errorThrown) {
|
||||
if (response.errorThrown || response.textStatus === 'error') {
|
||||
// attempt parsing Sabre exception is available
|
||||
var xml = response.jqXHR.responseXML;
|
||||
if (xml && xml.documentElement.localName === 'error' && xml.documentElement.namespaceURI === 'DAV:') {
|
||||
|
|
Loading…
Reference in New Issue