From 45e40a8c252bfc014937bef0853ffb665125166d Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Wed, 20 Nov 2024 16:41:01 +0000 Subject: 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 --- src/nxt_http.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit