lil clean-up
This commit is contained in:
parent
6579433c62
commit
ccc9479d59
|
@ -31,9 +31,8 @@ $router.post(-> $request, $response {
|
||||||
my Str $url-host = $request.headers.<Host>;
|
my Str $url-host = $request.headers.<Host>;
|
||||||
my (Str $base-url, Str $hyperlink, Str %stash);
|
my (Str $base-url, Str $hyperlink, Str %stash);
|
||||||
|
|
||||||
$base-url = $meta-refresh
|
$base-url = $url-scheme ~ '://' ~ $url-host ~
|
||||||
?? $url-scheme ~ '://' ~ $url-host ~ '/--meta-refresh/'
|
($meta-refresh ?? '/--meta-refresh/' !! '/');
|
||||||
!! $url-scheme ~ '://' ~ $url-host ~ '/';
|
|
||||||
|
|
||||||
$hyperlink = $base-url ~ encode-base64(gzip($return-url), :str);
|
$hyperlink = $base-url ~ encode-base64(gzip($return-url), :str);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue