If-None-Match in php

Discussion in 'Bug Reports' started by IO, Sep 24, 2005.

  1. IO

    IO Active Member


    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).
  2. mistwang

    mistwang LiteSpeed Staff

    Thank you for the bug report, will be fixed soon.

Share This Page