diff options
| author | Andrew Clayton <a.clayton@nginx.com> | 2024-11-20 16:41:01 +0000 |
|---|---|---|
| committer | Andrew Clayton <a.clayton@nginx.com> | 2025-04-14 18:11:53 +0100 |
| commit | 45e40a8c252bfc014937bef0853ffb665125166d (patch) | |
| tree | 9c5547ade84177f2543ded01124ebf018dc948c9 | |
| parent | 89149c066cd5e929a6ca7a538a81480536aea61d (diff) | |
| download | unit-45e40a8c252bfc014937bef0853ffb665125166d.tar.gz unit-45e40a8c252bfc014937bef0853ffb665125166d.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>
| -rw-r--r-- | src/nxt_http.h | 1 |
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; |
