Commit dae8adb4 authored by Xavier Guimard's avatar Xavier Guimard

Read rules in PSGI::Try (#1658)

parent 70a5c645
......@@ -60,7 +60,7 @@ sub _run {
$self->routes( $self->authRoutes );
$req->userData( $self->api->data );
}
else {
elsif ( $res->[0] != 403 ) {
# Unset headers (handler adds a Location header)
$self->logger->debug(
"User not authenticated, Try in use, cancel redirection");
......@@ -68,6 +68,9 @@ sub _run {
$req->respHeaders( [] );
$self->routes( $self->unAuthRoutes );
}
else {
return $res;
}
$res = $self->handler($req);
# Insert respHeaders in response only if not already set
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment