diff options
Diffstat (limited to 'http_put.c')
-rw-r--r-- | http_put.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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; } |