[dancer-users] setting header before redirect
Richard Huxton
dev at archonet.com
Tue Dec 3 17:37:16 GMT 2013
On 03/12/13 17:29, Nuno Carvalho wrote:
> Hello everyone,
>
> I have two simple Dancer 1 apps, I'm creating a specific header in
> one, and then redirecting to the other application. I would expect to
> find the custom header in the second application, but I don't see it.
> I'm also using Data::Dumper to view the request in the second
> application and I don't find the header there either.
> Here's the route for both applications:
>
> http://paste.perldancer.org/PtkO0HkfPev
>
> Am i doing something wrong? Any insight would be appreciated.
The redirect is issued to the browser. It then loads the new URL. So -
the header goes back to the browser, not to the handler of the second
request.
--
Richard Huxton
Archonet Ltd
More information about the dancer-users
mailing list