diff options
author | Reyk Floeter <reyk@cvs.openbsd.org> | 2014-07-25 23:25:39 +0000 |
---|---|---|
committer | Reyk Floeter <reyk@cvs.openbsd.org> | 2014-07-25 23:25:39 +0000 |
commit | 435736ac5e757b7575d9ab27128ad47f8e6950d2 (patch) | |
tree | cb31d1731406b64ec698a475103d86d73d7e0bbd /usr.sbin/httpd/server_http.c | |
parent | 6834e101893523e73b446446dc3d5df3738d76a6 (diff) |
Reset the default Host for each request
Diffstat (limited to 'usr.sbin/httpd/server_http.c')
-rw-r--r-- | usr.sbin/httpd/server_http.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/httpd/server_http.c b/usr.sbin/httpd/server_http.c index a05f25cc7d7..bfc52725dd7 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.18 2014/07/25 23:23:39 reyk Exp $ */ +/* $OpenBSD: server_http.c,v 1.19 2014/07/25 23:25:38 reyk Exp $ */ /* * Copyright (c) 2006 - 2014 Reyk Floeter <reyk@openbsd.org> @@ -506,6 +506,7 @@ void server_reset_http(struct client *clt) { struct http_descriptor *desc = clt->clt_desc; + struct server *srv = clt->clt_srv; server_httpdesc_free(desc); desc->http_method = 0; @@ -514,6 +515,7 @@ server_reset_http(struct client *clt) clt->clt_line = 0; clt->clt_done = 0; clt->clt_bev->readcb = server_read_http; + clt->clt_srv_conf = &srv->srv_conf; } static void |