From 4e079e094fb225e5ad3ff377b28826d8949f51ec Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Sat, 19 Dec 2020 13:06:51 +0100 Subject: [PATCH] Bugfix location redirect --- src/client.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client.c b/src/client.c index 918625a..e38e790 100644 --- a/src/client.c +++ b/src/client.c @@ -141,7 +141,7 @@ int client_request_handler(sock *client, int req_num) { size = sizeof(buf0); encode_url(uri.uri, buf0, &size); sprintf(buf1, "https://%s%s", host, buf0); - http_add_header_field(&res.hdr, "Location", buf0); + http_add_header_field(&res.hdr, "Location", buf1); goto respond; }