Skip to content

Commit

Permalink
file-upload: Correctly handle error responses for HTTP2
Browse files Browse the repository at this point in the history
Signed-off-by: Jakub Onderka <[email protected]>
  • Loading branch information
JakubOnderka authored and kesselb committed Oct 4, 2021
1 parent f82c4d3 commit 7b6c2dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/files/js/file-upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -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:') {
Expand Down

0 comments on commit 7b6c2dd

Please sign in to comment.