If-None-Match in php

IO

Active Member
#1
Hi,

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

If you do :
Code:
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).
 
Top