From 0cc11a24fe67250b6e09abc5b46feeebef4ce7b7 Mon Sep 17 00:00:00 2001 From: benno Date: Thu, 14 Dec 2017 21:19:47 +0000 Subject: [PATCH] set Location header for 307 and 308 status codes ok sthen@ phessler@ --- usr.sbin/httpd/server_http.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)); -- 2.20.1