Show
Ignore:
Timestamp:
08/05/08 00:46:08 (5 years ago)
Author:
tokuhirom
Message:

test $c->req->base.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/HTTP-Engine/branches/lazy_request/t/020_interface/test.t

    r17073 r17082  
    1919            request_handler => sub { 
    2020                my $c = shift; 
     21                eval $block->code; 
     22                die $@ if $@; 
    2123                $c->res->header( 'X-Req-Test' => "ping" ); 
    2224                $c->res->body('OK!'); 
     
    3941 
    4042=== 
     43--- code 
    4144--- response 
    4245Content-Length: 3 
     
    4649 
    4750OK! 
     51 
     52=== $c->req->base 
     53--- code 
     54$c->res->header('X-Req-Base' => $c->req->base); 
     55--- response 
     56Content-Length: 3 
     57Content-Type: text/html 
     58Status: 200 
     59X-Req-Base: http://localhost/ 
     60X-Req-Test: ping 
     61 
     62OK! 
     63