aboutsummaryrefslogtreecommitdiff
path: root/server.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2023-07-01 18:41:46 +0000
committerOmar Polo <op@omarpolo.com>2023-07-01 18:41:46 +0000
commit2c3810687f0c8b7c14897618c5a3147f949df408 (patch)
tree0c1a806a390a78088f0cd8625e30bd61d71c8e80 /server.c
parent2247b66842be7049e4dbfe099781bd3d2f69fbe9 (diff)
change log_request to take the code and meta unpacked
don't know what i was smoking when I wrote log_request() like that...
Diffstat (limited to 'server.c')
-rw-r--r--server.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/server.c b/server.c
index 235aa6e..d63f302 100644
--- a/server.c
+++ b/server.c
@@ -1167,8 +1167,7 @@ start_reply(struct client *c, int code, const char *meta)
bufferevent_write(c->bev, "\r\n", 2);
if (!vhost_disable_log(c->host, c->iri.path))
- log_request(c, (char *)EVBUFFER_DATA(evb),
- EVBUFFER_LENGTH(evb));
+ log_request(c, code, meta);
if (code != 20)
c->type = REQUEST_DONE;