Roxen.git / server / etc / test / tests / http / http_common.pike

version» Context lines:

Roxen.git/server/etc/test/tests/http/http_common.pike:80:    if( prot != expected_prot ) EXIT( BADPROT );    if( code != expected_code ) EXIT( BADCODE );       foreach( q[1..], string header )    {    string a, b;    sscanf( header, "%s: %s", a, b );    hd[ lower_case( a ) ] = b;    }    -  if( !hd->date ) +  if( (want_last_modified >= 0) && !hd->date )    EXIT( NODATE ); -  if( !hd["content-length"] || (int)hd["content-length"] != content_length ) +  if( (content_length >= 0) && +  (!hd["content-length"] || (int)hd["content-length"] != content_length) )    EXIT( BADLENGTH ); -  if( want_last_modified && !hd["last-modified"] ) +  if( (want_last_modified > 0) && !hd["last-modified"] )    EXIT( BADMODIFIED );       return hd;   }