Bugfix location redirect

This commit is contained in:
2020-12-19 13:06:51 +01:00
parent a4901f4c23
commit 4e079e094f

View File

@ -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;
}