diff options
author | Valentin Bartenev <vbart@nginx.com> | 2019-09-30 19:11:17 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2019-09-30 19:11:17 +0300 |
commit | f7d3db314da88be47eeed0a3509368cbe4c5f04f (patch) | |
tree | 05e6f11157599241e9ce83a7ea90246dde3a6a81 /src/test/nxt_utf8_file_name_test.c | |
parent | 2dbda125db743f71d4dd104b29fa58620eb49de2 (diff) | |
download | unit-f7d3db314da88be47eeed0a3509368cbe4c5f04f.tar.gz unit-f7d3db314da88be47eeed0a3509368cbe4c5f04f.tar.bz2 |
HTTP parser: removed unused "exten" field.
This field was intended for MIME type lookup by file extension when serving
static files, but this use case is too narrow; only a fraction of requests
targets static content, and the URI presumably isn't rewritten. Moreover,
current implementation uses the entire filename for MIME type lookup if the
file has no extension.
Instead of extracting filenames and extensions when parsing requests, it's
easier to obtain them right before serving static content; this behavior is
already implemented. Thus, we can drop excessive logic from parser.
Diffstat (limited to 'src/test/nxt_utf8_file_name_test.c')
0 files changed, 0 insertions, 0 deletions