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/request.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/request.c')
-rw-r--r-- | src/request.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/request.c b/src/request.c index 74d9584d..7d76c8bc 100644 --- a/src/request.c +++ b/src/request.c @@ -453,7 +453,7 @@ static int http_request_parse_single_header(connection * const con, const enum h /* Proxies sometimes send dup headers * if they are the same we ignore the second * if not, we raise an error */ - buffer *vb = + const buffer *vb = http_header_request_get(con, HTTP_HEADER_IF_MODIFIED_SINCE, CONST_STR_LEN("If-Modified-Since")); if (vb && buffer_is_equal_caseless_string(vb, v, vlen)) { |