diff options
author | Tim van der Molen <tim@cvs.openbsd.org> | 2016-02-11 19:30:05 +0000 |
---|---|---|
committer | Tim van der Molen <tim@cvs.openbsd.org> | 2016-02-11 19:30:05 +0000 |
commit | f63c5d2cf9565442d6d8d464b581baac1f6a7a30 (patch) | |
tree | d21127f4827a917143214a60964605e45f7ab194 /usr.sbin/httpd | |
parent | 37d40afdfe09b21d8c3954d2a5ee4fa8450dbaaf (diff) |
Back out previous; requested by jung@
Diffstat (limited to 'usr.sbin/httpd')
-rw-r--r-- | usr.sbin/httpd/server_http.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/usr.sbin/httpd/server_http.c b/usr.sbin/httpd/server_http.c index ab0f6ff4d0a..e609de4af01 100644 --- a/usr.sbin/httpd/server_http.c +++ b/usr.sbin/httpd/server_http.c @@ -1,4 +1,4 @@ -/* $OpenBSD: server_http.c,v 1.104 2016/02/11 16:14:11 tim Exp $ */ +/* $OpenBSD: server_http.c,v 1.105 2016/02/11 19:30:04 tim Exp $ */ /* * Copyright (c) 2006 - 2015 Reyk Floeter <reyk@openbsd.org> @@ -1504,9 +1504,9 @@ server_log_http(struct client *clt, unsigned int code, size_t len) goto done; ret = evbuffer_add_printf(clt->clt_log, - "%s:%u %s - %s [%s] \"%s %s%s%s%s%s\" %03d %zu\n", - srv_conf->name, htons(srv_conf->port), ip, - clt->clt_remote_user == NULL ? "-" : user, tstamp, + "%s %s - %s [%s] \"%s %s%s%s%s%s\" %03d %zu\n", + srv_conf->name, ip, clt->clt_remote_user == NULL ? "-" : + user, tstamp, server_httpmethod_byid(desc->http_method), desc->http_path == NULL ? "" : path, desc->http_query == NULL ? "" : "?", @@ -1551,10 +1551,10 @@ server_log_http(struct client *clt, unsigned int code, size_t len) goto done; ret = evbuffer_add_printf(clt->clt_log, - "%s:%u %s - %s [%s] \"%s %s%s%s%s%s\"" + "%s %s - %s [%s] \"%s %s%s%s%s%s\"" " %03d %zu \"%s\" \"%s\"\n", - srv_conf->name, htons(srv_conf->port), ip, - clt->clt_remote_user == NULL ? "-" : user, tstamp, + srv_conf->name, ip, clt->clt_remote_user == NULL ? "-" : + user, tstamp, server_httpmethod_byid(desc->http_method), desc->http_path == NULL ? "" : path, desc->http_query == NULL ? "" : "?", |