Welcome! Log In Create A New Profile

Advanced

NginxHttpImageFilterModule doesn't conform to HTTP spec on HEAD

January 06, 2010 09:16PM
In reference to NginxHttpImageFilterModule image_filter resize directive:

http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html

>>>
Content-Length:
...or, in the case of the HEAD method, the size of the entity-body that would have been sent had the request been a GET...


When a HEAD request is done, it seems nginx returns the HEAD of the image it would of fetched before the resize, which includes the original image's size. Instead, to conform to spec, nginx could GET the image, resize, and return the Content-Length of what it would of returned.

As a work around, is there an easy way to remove the Content-Length header in the response? I guess NginxHttpHeadersMoreModule is the best way.
Subject Author Posted

NginxHttpImageFilterModule doesn't conform to HTTP spec on HEAD

jack January 06, 2010 09:16PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 181
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready