diff options
Diffstat (limited to 'http_put.c')
-rw-r--r-- | http_put.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -19,6 +19,7 @@ static void file_close_null(struct mog_fd *mfd) if (http->forward == NULL) return; mog_http_unlink_ftmp(http); + TRACE(CMOGSTORED_HTTP_BYTES_XFER(mfd->fd, http->forward->as.file.foff)); mog_file_close(http->forward); http->forward = NULL; } @@ -379,6 +380,8 @@ void mog_http_put(struct mog_fd *mfd, char *buf, size_t buf_len) assert(http->forward == NULL && "already have http->forward"); assert(path[0] == '/' && "bad path"); + TRACE(CMOGSTORED_HTTP_REQ_START(mfd->fd, "PUT", path)); + if (!lengths_ok(http)) { write_err(mfd, "400 Bad Request"); return; |