diff options
Diffstat (limited to 'Bugzilla/CGI/Mojo.pm')
-rw-r--r-- | Bugzilla/CGI/Mojo.pm | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/Bugzilla/CGI/Mojo.pm b/Bugzilla/CGI/Mojo.pm index 0ae12f976..e3adf1133 100644 --- a/Bugzilla/CGI/Mojo.pm +++ b/Bugzilla/CGI/Mojo.pm @@ -20,10 +20,21 @@ sub script_name { return $self->controller->req->env->{SCRIPT_NAME}; } +sub http { + my ($self, $header) = @_; + return $self->controller->req->headers->header($header); +} + +sub redirect { + my ($self, $location) = @_; + + $self->controller->redirect_to($location); +} + sub Vars { my ($self) = @_; return $self->controller->req->query_params->to_hash; } -1;
\ No newline at end of file +1; |