about summary refs log tree commit homepage
path: root/http_put.c
diff options
context:
space:
mode:
Diffstat (limited to 'http_put.c')
-rw-r--r--http_put.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/http_put.c b/http_put.c
index a47d944..360c46e 100644
--- a/http_put.c
+++ b/http_put.c
@@ -362,12 +362,13 @@ static struct mog_file * open_put(struct mog_http *http, char *path)
         return file;
 }
 
-void mog_http_put(struct mog_http *http, char *buf, size_t buf_len)
+void mog_http_put(struct mog_fd *mfd, char *buf, size_t buf_len)
 {
+        struct mog_http *http = &mfd->as.http;
         char *path;
         struct mog_file *file;
 
-        if (mog_fd_of(http)->fd_type == MOG_FD_TYPE_HTTPGET) {
+        if (mfd->fd_type == MOG_FD_TYPE_HTTPGET) {
                 mog_http_resp(http, "405 Method Not Allowed", false);
                 return;
         }