lil moar cleanup
This commit is contained in:
parent
ccc9479d59
commit
ab2b250667
|
@ -25,10 +25,10 @@ $router.get(-> $request, $response {
|
||||||
});
|
});
|
||||||
|
|
||||||
$router.post(-> $request, $response {
|
$router.post(-> $request, $response {
|
||||||
my Str $return-url = $request.content.<hyperlink>;
|
my Str $return-url = $request.content<hyperlink>;
|
||||||
my Bool $meta-refresh = $request.content.<meta-refresh>.defined;
|
my Bool $meta-refresh = $request.content<meta-refresh>.defined;
|
||||||
my Str $url-scheme = $request.headers.<X-Forwarded-Proto> || 'http';
|
my Str $url-scheme = $request.headers<X-Forwarded-Proto> || 'http';
|
||||||
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 = $url-scheme ~ '://' ~ $url-host ~
|
$base-url = $url-scheme ~ '://' ~ $url-host ~
|
||||||
|
|
Loading…
Reference in New Issue
Block a user