From: benno Date: Thu, 14 Dec 2017 21:19:47 +0000 (+0000) Subject: set Location header for 307 and 308 status codes X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=0cc11a24fe67250b6e09abc5b46feeebef4ce7b7;p=openbsd set Location header for 307 and 308 status codes ok sthen@ phessler@ --- diff --git a/usr.sbin/httpd/server_http.c b/usr.sbin/httpd/server_http.c index e64de0d2f9c..414e297f082 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.117 2017/05/15 10:40:47 jsg Exp $ */ +/* $OpenBSD: server_http.c,v 1.118 2017/12/14 21:19:47 benno Exp $ */ /* * Copyright (c) 2006 - 2017 Reyk Floeter @@ -875,6 +875,8 @@ server_abort_http(struct client *clt, unsigned int code, const char *msg) case 301: case 302: case 303: + case 307: + case 308: if (msg == NULL) break; memset(buf, 0, sizeof(buf));