summaryrefslogtreecommitdiff
path: root/src/http-header-glue.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2022-04-13 22:48:20 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2022-05-05 13:35:16 -0400
commitd0494fc081f607bc862e4bf46234b00742d79d08 (patch)
tree556b068e51b8d72d3fcd6bac32369caf2f65f227 /src/http-header-glue.c
parent206fafa37d7efbc0ec0ed04eeab1d926a37d5bd0 (diff)
downloadlighttpd-git-d0494fc081f607bc862e4bf46234b00742d79d08.tar.gz
[multiple] recognize HTTP QUERY method
x-ref: https://www.ietf.org/id/draft-ietf-httpbis-safe-method-w-body-02.html
Diffstat (limited to 'src/http-header-glue.c')
-rw-r--r--src/http-header-glue.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http-header-glue.c b/src/http-header-glue.c
index 339f9277..0a7ec4dd 100644
--- a/src/http-header-glue.c
+++ b/src/http-header-glue.c
@@ -211,7 +211,7 @@ int http_response_handle_cachable(request_st * const r, const buffer *lmod, cons
/*(weak etag comparison must not be used for ranged requests)*/
int range_request = (0 != light_btst(r->rqst_htags, HTTP_HEADER_RANGE));
if (http_etag_matches(etag, vb->ptr, !range_request)) {
- if (http_method_get_or_head(r->http_method)) {
+ if (http_method_get_head_query(r->http_method)) {
r->http_status = 304;
return HANDLER_FINISHED;
} else {
@@ -220,7 +220,7 @@ int http_response_handle_cachable(request_st * const r, const buffer *lmod, cons
return HANDLER_FINISHED;
}
}
- } else if (http_method_get_or_head(r->http_method)
+ } else if (http_method_get_head_query(r->http_method)
&& (vb = http_header_request_get(r, HTTP_HEADER_IF_MODIFIED_SINCE,
CONST_STR_LEN("If-Modified-Since")))
&& (lmod