Changeset 18590
- Timestamp:
- 09/01/08 21:59:20 (5 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/perl/HTTP-Engine/trunk/lib/HTTP/Engine/Interface/ModPerl.pm
r18269 r18590 63 63 ); 64 64 65 has context_key => ( 66 is => 'rw', 67 isa => 'Str', 68 ); 69 65 70 no Moose; 66 71 … … 71 76 my $class = shift; 72 77 my $r = shift; 78 my $server = $r->server; 73 79 74 80 # ModPerl is currently the only environment where the inteface comes 75 81 # before the actual invocation of HTTP::Engine 76 82 77 my $ location =$r->location;78 my $engine = $HE{ $ location};83 my $context_key = join ':', $server->server_hostname, $server->port, $r->location; 84 my $engine = $HE{ $context_key }; 79 85 if (! $engine ) { 80 $engine = $class->create_engine($r );81 $HE{ $ r->location} = $engine;86 $engine = $class->create_engine($r, $context_key); 87 $HE{ $context_key } = $engine; 82 88 } 83 89 84 90 $engine->interface->apache( $r ); 91 $engine->interface->context_key( $context_key ); 85 92 86 my $server = $r->server;87 93 my $connection = $r->connection; 88 94
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)