The official NGINX Open Source repository.
Go to file
Maxim Dounin d2c0b9a6c7 Removed incorrect optimization of HEAD requests.
The stub status module and ngx_http_send_response() (used by the empty gif
module and the "return" directive) incorrectly assumed that responding
to HEAD requests always results in r->header_only being set.  This is not
true, and results in incorrect behaviour, for example, in the following
configuration:

   location / {
       image_filter size;
       return 200 test;
   }

Fix is to remove this incorrect micro-optimization from both stub status
module and ngx_http_send_response().

Reported by Chris Newton.
2021-01-19 20:21:12 +03:00
auto Core: "-e" command line option. 2020-11-19 16:59:00 +00:00
conf MIME: added font/woff2 type (ticket #1243). 2018-06-15 17:29:55 +03:00
contrib Contrib: vim syntax, update core and 3rd party module directives. 2020-12-29 13:13:57 +02:00
docs nginx-1.19.6-RELEASE 2020-12-15 17:41:39 +03:00
misc Updated OpenSSL used for win32 builds. 2020-12-15 16:49:24 +03:00
src Removed incorrect optimization of HEAD requests. 2021-01-19 20:21:12 +03:00
.hgtags release-1.19.6 tag 2020-12-15 17:41:39 +03:00