aboutsummaryrefslogtreecommitdiff
path: root/t/relativity.t
diff options
context:
space:
mode:
authorSimon McVittie <smcv@debian.org>2014-10-05 23:06:48 +0100
committerSimon McVittie <smcv@debian.org>2014-10-05 23:49:37 +0100
commit3b8da667cc1514a9589190b614307c0a76af532a (patch)
tree48d4d35e0c6cd9f68f0e2cace61f1ad79e8473ea /t/relativity.t
parentd712389ae3e8351c1416aa81d4b85586cf98f002 (diff)
downloadikiwiki-3b8da667cc1514a9589190b614307c0a76af532a.tar
ikiwiki-3b8da667cc1514a9589190b614307c0a76af532a.tar.gz
Add reverse_proxy option which hard-codes cgiurl in CGI output
This solves several people's issues with the CGI trying to be too clever when IkiWiki is placed behind a reverse-proxy.
Diffstat (limited to 't/relativity.t')
-rwxr-xr-xt/relativity.t6
1 files changed, 0 insertions, 6 deletions
diff --git a/t/relativity.t b/t/relativity.t
index 675efc903..86b807b5b 100755
--- a/t/relativity.t
+++ b/t/relativity.t
@@ -571,11 +571,8 @@ run(["./t/tmp/ikiwiki.cgi"], \undef, \$content, init => sub {
%bits = parse_cgi_content($content);
like($bits{tophref}, qr{^(?:/wiki|\.)/$});
like($bits{cgihref}, qr{^(?:(?:https:)?//example.com)?/cgi-bin/ikiwiki.cgi$});
-TODO: {
-local $TODO = "reverse-proxy support needed";
is($bits{basehref}, "https://example.com/wiki/");
like($bits{stylehref}, qr{^(?:(?:https:)?//example.com)?/wiki/style.css$});
-}
# previewing a page
$in = 'do=edit&page=a/b/c&Preview';
@@ -589,10 +586,7 @@ run(["./t/tmp/ikiwiki.cgi"], \$in, \$content, init => sub {
%bits = parse_cgi_content($content);
like($bits{tophref}, qr{^(?:/wiki|\.\./\.\./\.\.)/$});
like($bits{cgihref}, qr{^(?:(?:https:)?//example.com)?/cgi-bin/ikiwiki.cgi$});
-TODO: {
-local $TODO = "reverse-proxy support needed";
is($bits{basehref}, "https://example.com/wiki/a/b/c/");
like($bits{stylehref}, qr{^(?:(?:https:)?//example.com)?/wiki/style.css$});
-}
done_testing;