summaryrefslogtreecommitdiff
path: root/src/response.h
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-10-21 09:45:06 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2021-10-27 04:16:38 -0400
commit1acf9db7d3c90c23917ea885dfcf668ffe264c1b (patch)
tree7ae2e75e71acef55a21db472940387004712b780 /src/response.h
parente78cd76511c08b30f808999126dc3abe9bf32ead (diff)
downloadlighttpd-git-1acf9db7d3c90c23917ea885dfcf668ffe264c1b.tar.gz
[mod_ajp13,mod_fastcgi] check resp w/ content len
limit response body from mod_ajp13 and mod_fastcgi to Content-Length, if Content-Length is provided in response headers; discard excess
Diffstat (limited to 'src/response.h')
-rw-r--r--src/response.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/response.h b/src/response.h
index e23cc31d..132b4658 100644
--- a/src/response.h
+++ b/src/response.h
@@ -9,6 +9,7 @@
#include "array.h"
struct stat_cache_entry;/* declaration */
+struct chunkqueue; /* declaration */
int http_response_parse(server *srv, request_st *r);
@@ -55,6 +56,7 @@ void http_response_send_file (request_st *r, buffer *path, struct stat_cache_ent
void http_response_backend_done (request_st *r);
void http_response_backend_error (request_st *r);
void http_response_upgrade_read_body_unknown(request_st *r);
+int http_response_transfer_cqlen(request_st *r, struct chunkqueue *cq, size_t len);
__attribute_cold__
int http_response_omit_header(request_st *r, const data_string *ds);