summaryrefslogtreecommitdiffhomepage
path: root/src/html-error.h
diff options
context:
space:
mode:
authorrofl0r <rofl0r@users.noreply.github.com>2021-03-28 20:22:32 +0100
committerrofl0r <rofl0r@users.noreply.github.com>2021-03-28 20:24:23 +0100
commit48860bbe26867cd0ad880b6358cfcba8d142c267 (patch)
tree000aa44ff1703a08e1ac1829d407b90106a679fd /src/html-error.h
parentc4231e58bf2613b6ab8b34f234c117c5d1488931 (diff)
refactor html-error so send_http_headers() can take extra arg
we already required an extra argument inside the headers sent for 401 and 407 error responses, move those to sent_http_error_message() and refactor send_http_headers() to always take the extra argument. in calling sites where the extra arg isn't needed, use "".
Diffstat (limited to 'src/html-error.h')
-rw-r--r--src/html-error.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/html-error.h b/src/html-error.h
index c133cef..bc9b7ce 100644
--- a/src/html-error.h
+++ b/src/html-error.h
@@ -33,7 +33,7 @@ extern int add_error_variable (struct conn_s *connptr, const char *key,
const char *val);
extern int send_html_file (FILE * infile, struct conn_s *connptr);
extern int send_http_headers (struct conn_s *connptr, int code,
- const char *message);
+ const char *message, const char *extra);
extern int add_standard_vars (struct conn_s *connptr);
#endif /* !TINYPROXY_HTML_ERROR_H */