PDA

View Full Version : If-None-Match in php


IO
09-24-2005, 02:34 AM
Hi,

There is a mistake in variables declaration for php scripts (and perhaps others) in 2.x litespeed :

If you do :
wget --header="If-None-Match: test" http://your-server/phpinfo.php
grep _SERVER phpinfo.php
You obtain _SERVER["HTTP_IF_NO_MATCH"] -> test

The correct variable should be : _SERVER["HTTP_IF_NONE_MATCH"] -> test

It's important for page validation in case of no change (header 304 not modified).

mistwang
09-24-2005, 07:44 AM
Thank you for the bug report, will be fixed soon.