Skip to content

Commit

Permalink
All: Fixes #2485: Better handling of rare error in WebDAV server
Browse files Browse the repository at this point in the history
  • Loading branch information
laurent22 committed Feb 14, 2020
1 parent 675ef8a commit 79f5bcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ReactNativeClient/lib/WebDavApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ class WebDavApi {
if (['MKCOL', 'DELETE', 'PUT', 'MOVE'].indexOf(method) >= 0) return null;

const output = await loadResponseJson();
this.handleNginxHack_(output, newError);
if (output) this.handleNginxHack_(output, newError);

// Check that we didn't get for example an HTML page (as an error) instead of the JSON response
// null responses are possible, for example for DELETE calls
Expand Down

0 comments on commit 79f5bcd

Please sign in to comment.