Translate HTTP 405 into ENOENT

This commit is contained in:
wbaumann 2012-03-18 10:42:42 +00:00
parent 459a6c9bdf
commit 02c79a1693
2 changed files with 8 additions and 3 deletions

View File

@ -1,8 +1,13 @@
ChangeLog for davfs2 ChangeLog for davfs2
-------------------- --------------------


2012-03-1 Werner Baumann (werner.baumann@onlinehome.de) 2012-03-18 Werner Baumann (werner.baumann@onlinehome.de)
* webdav.c, dav_init_cache: * webdav.c, get_ne_error:
Translate HTTP 405 into ENOENT.
(http://savannah.nongnu.org/support/?107869)

2012-03-01 Werner Baumann (werner.baumann@onlinehome.de)
* cache.c, dav_init_cache:
Fix integer overrun. Fix integer overrun.


2012-02-05 Werner Baumann (werner.baumann@onlinehome.de) 2012-02-05 Werner Baumann (werner.baumann@onlinehome.de)

View File

@ -1336,6 +1336,7 @@ get_ne_error(const char *method)
case 301: /* Moved Permanently */ case 301: /* Moved Permanently */
case 303: /* See Other */ case 303: /* See Other */
case 404: /* Not Found */ case 404: /* Not Found */
case 405: /* Method Not Allowed */
case 410: /* Gone */ case 410: /* Gone */
return ENOENT; return ENOENT;
case 408: /* Request Timeout */ case 408: /* Request Timeout */
@ -1345,7 +1346,6 @@ get_ne_error(const char *method)
return EACCES; return EACCES;
case 400: /* Bad Request */ case 400: /* Bad Request */
case 403: /* Forbidden */ case 403: /* Forbidden */
case 405: /* Method Not Allowed */
case 409: /* Conflict */ case 409: /* Conflict */
case 411: /* Length Required */ case 411: /* Length Required */
case 412: /* Precondition Failed */ case 412: /* Precondition Failed */