Use the 307 code to force agents to retain the original request method.
Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
cl->request.respond_chunked = false;
cl->request.connection_close = true;
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);
if (port != 443)
ustream_printf(cl->us, "Location: https://%s:%d%s\r\n\r\n", host, port, url);