Skip to content

Commit

Permalink
Item14380: fix getUrlHost unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDaum committed Feb 27, 2023
1 parent 7f4104c commit 19c83ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions UnitTestContrib/lib/Unit/Request.pm
Original file line number Diff line number Diff line change
Expand Up @@ -58,13 +58,16 @@ sub setUrl {
my $host = $2;
if ( $protocol =~ /https/i ) {
$this->secure(1);
$ENV{HTTPS} = 'ON';
}
else {
$this->secure(0);
$ENV{HTTPS} = undef;
}

#print STDERR "setting Host to $host\n";
$this->header( -name => 'Host', -value => $host );
$ENV{HTTP_HOST} = $host;
}

my @pairs = split /[&;]/, $urlParams;
Expand Down

0 comments on commit 19c83ae

Please sign in to comment.