mirror of
https://github.com/moparisthebest/wget
synced 2024-07-03 16:38:41 -04:00
Perl test suite: Substitue server port in HTTP headers
This commit is contained in:
parent
54227091b8
commit
f0e7326c20
@ -1,3 +1,11 @@
|
||||
2014-11-26 Tim Ruehsen <tim.ruehsen@gmx.de>
|
||||
|
||||
* HTTPServer.pm: Substitue server port in HTTP headers
|
||||
|
||||
This allows us to use references like
|
||||
"Location" => "http://localhost:{{port}}/whatever
|
||||
in test cases.
|
||||
|
||||
2014-11-05 Tim Ruehsen <tim.ruehsen@gmx.de>
|
||||
|
||||
* Makefile.am: added $(LIB_CLOCK_GETTIME) to unit test linkage
|
||||
|
@ -98,6 +98,7 @@ sub send_response
|
||||
while (my ($name, $value) = each %{$headers})
|
||||
{
|
||||
# print STDERR "setting header: $name = $value\n";
|
||||
$value = $self->_substitute_port($value);
|
||||
$resp->header($name => $value);
|
||||
}
|
||||
print STDERR "HTTP::Response with headers: \n", $resp->as_string if $log;
|
||||
|
Loading…
Reference in New Issue
Block a user