diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2019-10-13 13:57:25 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2020-02-24 11:15:32 -0500 |
commit | 6eb34ef5ab6160125b77c0383366dfa2c6643beb (patch) | |
tree | c3e9a5c5bc93f883a6bb62cb730a5a85ac4303c7 /src/connections.c | |
parent | 601c572c3924be5e69a122bce81a9b57a7f985ae (diff) | |
download | lighttpd-git-6eb34ef5ab6160125b77c0383366dfa2c6643beb.tar.gz |
[core] add const to callers of http_header_*_get()
(The few places where value is modified in-place were not made const)
Diffstat (limited to 'src/connections.c')
-rw-r--r-- | src/connections.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/connections.c b/src/connections.c index 84f4f33a..e75b48ca 100644 --- a/src/connections.c +++ b/src/connections.c @@ -257,7 +257,7 @@ static void connection_handle_errdoc_init(connection *con) { * mod_auth WWW-Authenticate response header. */ buffer *www_auth = NULL; if (401 == con->http_status) { - buffer *vb = http_header_response_get(con, HTTP_HEADER_OTHER, CONST_STR_LEN("WWW-Authenticate")); + const buffer *vb = http_header_response_get(con, HTTP_HEADER_OTHER, CONST_STR_LEN("WWW-Authenticate")); if (NULL != vb) www_auth = buffer_init_buffer(vb); } |