httpd-test-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug MacEachern <do...@covalent.net>
Subject Re: Fix for mod_access test
Date Tue, 28 Aug 2001 16:34:16 GMT
On Tue, 28 Aug 2001, Gary Benson wrote:
 
> Is "my $localhost_name = Apache::TestConfig->default_localhost;" valid?
> Should you not do this:
> 
>     my $env = Apache::TestConfig->thaw;
>     my $localhost_name = $env->{vars}->{servername};

yeah, just trying to avoid thaw() multiple times.
my $localhost_name = Apache::TestRequest::vars()->{servername};

would be fine.

Apache::TestRequest caches the thaw so it only happens once per-process.



Mime
View raw message