You should also be able to use:
$domain = $c->req->url->to_abs->host;
On Wednesday, May 13, 2015 at 1:55:45 PM UTC+2, mjb152 wrote:
>
> apologies for self answering, but it might be of use to somebody else.
>
> my $base = $self->req->headers->header('X-Request-Base');
>
--
You received this message because you are subscribed to the Google Groups
"Mojolicious" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/mojolicious.
For more options, visit https://groups.google.com/d/optout.