diff options
author | Eric Wong <normalperson@yhbt.net> | 2012-03-15 09:51:01 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2012-03-15 09:51:01 +0000 |
commit | 8dfde57920bca7cdc70e9dccfb632028c2395979 (patch) | |
tree | b7b9519b0c657b3e0fd917ebc9884dc2bc7509be /http_dav.c | |
parent | 0e615c0d127b0f0d708445bd9901f38c421d7dec (diff) | |
download | cmogstored-8dfde57920bca7cdc70e9dccfb632028c2395979.tar.gz |
Hopefully things are less error-prone this way.
Diffstat (limited to 'http_dav.c')
-rw-r--r-- | http_dav.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -13,7 +13,7 @@ void mog_http_delete(struct mog_http *http, char *buf) int rc; char *path; - if (http->get_only) { + if (mog_fd_of(http)->fd_type == MOG_FD_TYPE_HTTPGET) { mog_http_resp(http, "405 Method Not Allowed", true); return; } @@ -49,7 +49,7 @@ void mog_http_mkcol(struct mog_http *http, char *buf) { char *path; - if (http->get_only) { + if (mog_fd_of(http)->fd_type == MOG_FD_TYPE_HTTPGET) { mog_http_resp(http, "405 Method Not Allowed", true); return; } |