Changeset 412

Show
Ignore:
Timestamp:
06/28/2005 05:25:35 PM (3 years ago)
Author:
jan
Message:

added a test for the 'don't pass Server from the backend server'

Location:
branches/lighttpd-1.3.x/tests
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/lighttpd-1.3.x/tests/mod-proxy.t

    r394 r412  
    99use strict; 
    1010use IO::Socket; 
    11 use Test::More tests => 5; 
     11use Test::More tests => 6; 
    1212use LightyTest; 
    1313 
     
    4141ok($tf_proxy->handle_http($t) == 0, 'valid request'); 
    4242 
     43$t->{REQUEST}  = ( <<EOF 
     44GET /phpinfo.php HTTP/1.0 
     45Host: www.example.org 
     46EOF 
     47 ); 
     48$t->{RESPONSE} = ( { 'HTTP-Protocol' => 'HTTP/1.0', 'HTTP-Status' => 200, 'Server' => 'Proxy' } ); 
     49ok($tf_proxy->handle_http($t) == 0, 'drop Server from real server'); 
     50 
    4351ok($tf_proxy->stop_proc == 0, "Stopping lighttpd proxy"); 
    4452 
  • branches/lighttpd-1.3.x/tests/proxy.conf

    r351 r412  
    99server.errorlog            = "/tmp/lighttpd/logs/lighttpd.error.log" 
    1010server.name                = "www.example.org" 
    11 server.tag                 = "Apache 1.3.29" 
     11server.tag                 = "Proxy" 
    1212 
    1313server.dir-listing          = "enable"