removed non-working dns resolver cache
This commit is contained in:
parent
c5c7150748
commit
00537430a9
12
server.pl
12
server.pl
|
@ -41,19 +41,9 @@ if (defined $ENV{'LOCAL_DOMAINS'}) {
|
|||
package DotplanApi;
|
||||
use base qw(HTTP::Server::Simple::CGI);
|
||||
sub net_server { 'Net::Server::Fork' }
|
||||
use HTTP::Server::Simple::Static;
|
||||
my $webroot = './static';
|
||||
|
||||
# Caching DNS resolver
|
||||
{
|
||||
package Net::DNS::Resolver;
|
||||
my %cache;
|
||||
sub query {
|
||||
my $self = shift;
|
||||
$cache{"@_"} ||= $self->SUPER::query(@_);
|
||||
}
|
||||
}
|
||||
|
||||
use HTTP::Server::Simple::Static;
|
||||
use IPC::Run;
|
||||
use DBI;
|
||||
use File::Temp qw(tempfile);
|
||||
|
|
|
@ -322,6 +322,8 @@ now=`perl -e 'use HTTP::Date; print HTTP::Date::time2str(time)'`
|
|||
curl_test 'If-Modified-Since header' 304 'text/plain' -H 'Accept: text/*' -H "If-Modified-Since: $now" localhost:$PORT/plan/$TEST_USER \
|
||||
&& assert_equal 'Empty content' "$TEST_CONTENT" ""
|
||||
|
||||
curl_test 'Static index' 200 'text/html' localhost:$PORT/
|
||||
|
||||
###############
|
||||
# Test Teardown
|
||||
###############
|
||||
|
|
Reference in New Issue