summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2024-11-20 16:41:01 +0000
committerAndrew Clayton <a.clayton@nginx.com>2024-11-20 22:52:25 +0000
commitdc638026cb460513a3339cb04b01ee40720f140c (patch)
tree9a930ddad64497520fe7a91cd8c22c6c47d93f53 /src
parent4f041328a9ee343ef87b1e2f571daed0b3cef37c (diff)
downloadunit-dc638026cb460513a3339cb04b01ee40720f140c.tar.gz
unit-dc638026cb460513a3339cb04b01ee40720f140c.tar.bz2
http: Add a mime_type member to nxt_http_response_t
This is to store the MIME type of the response which will be used by the HTTP compression patches as part of determining whether or not to compress the response. Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src')
-rw-r--r--src/nxt_http.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/nxt_http.h b/src/nxt_http.h
index 19bbdda3..92c2b327 100644
--- a/src/nxt_http.h
+++ b/src/nxt_http.h
@@ -111,6 +111,7 @@ typedef struct {
nxt_http_field_t *content_type;
nxt_http_field_t *content_length;
nxt_off_t content_length_n;
+ const nxt_str_t *mime_type;
} nxt_http_response_t;