webdav: HTTP 405 is an acceptable error (#15583)

This commit is contained in:
Eric Warmenhoven 2023-08-12 08:47:07 -04:00 committed by GitHub
parent 7198f10875
commit 6dee7225f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -601,7 +601,8 @@ static void webdav_mkdir_cb(retro_task_t *task, void *task_data, void *user_data
return; return;
// TODO: it's possible we get a 401 here and need to redo the auth check with this request // TODO: it's possible we get a 401 here and need to redo the auth check with this request
if (!data || data->status < 200 || data->status >= 400) /* HTTP 405 on MKCOL means it's already there */
if (!data || data->status < 200 || (data->status >= 400 && data->status != 405))
{ {
if (data) if (data)
webdav_log_http_failure(webdav_mkdir_st->url, data); webdav_log_http_failure(webdav_mkdir_st->url, data);