X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuhttpd.git;a=blobdiff_plain;f=client.c;fp=client.c;h=dbdd1a3cfe7c8d08c950bc4c93457d31449d1a7f;hp=3dbeb6d24c3cff95dd5a0732ab58598b76e4fb37;hb=daeea305298197bb50c1e63cdd842ee1d9461d80;hpb=a91aac9419f535f067ac17c16475912062d947ea diff --git a/client.c b/client.c index 3dbeb6d..dbdd1a3 100644 --- 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; - 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);