From a102fa8748a836d031e2e0e263b58af8c855332f Mon Sep 17 00:00:00 2001 From: Bryce Kwon Date: Thu, 1 Oct 2026 17:12:28 -1000 Subject: Keep the query string across the about redirects The hop to the trailing-slash form of the about page, and the hop back to the summary of a repository without a readme, were built from the path alone, so a request for the about page of another branch landed on the default one. The query goes into the Location line as the client sent it, with any byte a header cannot carry percent-encoded. --- source/html.h | 1 + 1 file changed, 1 insertion(+) (limited to 'source/html.h') diff --git a/source/html.h b/source/html.h index 46b445f..56fcb7f 100644 --- a/source/html.h +++ b/source/html.h @@ -63,6 +63,7 @@ extern void html_attr(const char *txt); extern void html_url_path(const char *txt); extern void html_url_arg(const char *txt); extern void html_header_arg_in_quotes(const char *txt); +extern void html_header_query(const char *txt); extern void html_hidden(const char *name, const char *value); __attribute__((format (printf,1,2))) -- cgit v2.8.0