Searched hist:1214 (Results 1 – 3 of 3) sorted by path
/unit/src/ |
H A D | nxt_http_parse.c | diff 1214:c3666b232602 Mon Sep 30 16:11:00 UTC 2019 Valentin Bartenev <vbart@nginx.com> 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.
|
H A D | nxt_http_parse.h | diff 1214:c3666b232602 Mon Sep 30 16:11:00 UTC 2019 Valentin Bartenev <vbart@nginx.com> 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.
|
/unit/src/test/ |
H A D | nxt_http_parse_test.c | diff 1214:c3666b232602 Mon Sep 30 16:11:00 UTC 2019 Valentin Bartenev <vbart@nginx.com> 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.
|