how to handle HTTP Redirect in misultin?
barakath opened this issue · comments
Barakathullah Iqbal commented
Hi,
I am trying to redirect the request to a new destination URL. But it is not working.
I am using
[302,"http://github.com"]
can anyone please help me with this issue
Roberto Ostinelli commented
I would be surprised if that did work. :)
http://en.wikipedia.org/wiki/HTTP_302
you need to add the Location header to your response. Something like:
Req:respond(302, [{'Location', "http://github.com"}], "").
r.
Barakathullah Iqbal commented
Thanks. It works.
Roberto Ostinelli commented
added a shortcut 309df57