projects
/
project
/
uhttpd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
client: use 307 instead of 302 for HTTPS redirects
[project/uhttpd.git]
/
client.c
diff --git
a/client.c
b/client.c
index
3dbeb6d
..
dbdd1a3
100644
(file)
--- a/
client.c
+++ b/
client.c
@@
-264,7
+264,7
@@
static bool tls_redirect_check(struct client *cl)
cl->request.respond_chunked = false;
cl->request.connection_close = true;
cl->request.respond_chunked = false;
cl->request.connection_close = true;
- uh_http_header(cl, 30
2, "Found
");
+ uh_http_header(cl, 30
7, "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);