diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2015-05-30 23:13:08 +0200 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2015-05-30 23:13:08 +0200 |
commit | daeea305298197bb50c1e63cdd842ee1d9461d80 (patch) | |
tree | 5f3e58a8c7ea34ac281f8f88d6e8892b0bd77615 | |
parent | a91aac9419f535f067ac17c16475912062d947ea (diff) |
client: use 307 instead of 302 for HTTPS redirects
Use the 307 code to force agents to retain the original request method.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
-rw-r--r-- | client.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -264,7 +264,7 @@ static bool tls_redirect_check(struct client *cl) cl->request.respond_chunked = false; cl->request.connection_close = true; - uh_http_header(cl, 302, "Found"); + uh_http_header(cl, 307, "Temporary Redirect"); if (port != 443) ustream_printf(cl->us, "Location: https://%s:%d%s\r\n\r\n", host, port, url); |