testbot: By default redirect to the same site.
Francois Gouget
fgouget at codeweavers.com
Wed Aug 6 18:24:28 CDT 2014
This makes is possible to access the website through an SSH redirection for instance.
---
This should also help with bug 35846 as submitting a job on newtestbot
will no longer redirect to testbot midstream:
* Mark http://testbot.winehq.org/ as deprecated
http://bugs.winehq.org/show_bug.cgi?id=35846
testbot/lib/WineTestBot/CGI/PageBase.pm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/testbot/lib/WineTestBot/CGI/PageBase.pm b/testbot/lib/WineTestBot/CGI/PageBase.pm
index a724507..1b1b919 100644
--- a/testbot/lib/WineTestBot/CGI/PageBase.pm
+++ b/testbot/lib/WineTestBot/CGI/PageBase.pm
@@ -404,7 +404,7 @@ sub Redirect($$$)
$Location = $URI . $Location;
}
my $Server = $self->{Request}->server;
- $Location = $Protocol . "://" . $Server->server_hostname . $Location;
+ $Location = $Protocol . "://" . $ENV{"HTTP_HOST"} . $Location;
}
$self->{Request}->headers_out->set("Location", $Location);
$self->{Request}->status(Apache2::Const::REDIRECT);
--
2.0.1
More information about the wine-patches
mailing list