[erlang-questions] Webmachine and 302 "Found" redirect

Aleksandr Vinokurov aleksandr.vin@REDACTED
Wed Apr 25 15:25:32 CEST 2012


Hello all,

Can't find a working list for webmachine users. I have a question: how to
respond with 302 "Found" code an HTTP request with a vanilla Webmachine
callback, like moved_permanently/2.

It is missed in the Webmachine activity diagram.

I know how to make it work with a {{halt,
302}, wrq:set_resp_header("Location", Location, ReqData),State} but it is
not the nice way IMHO.

-- Aleksandr Vinokurov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120425/16c6373f/attachment.htm>


More information about the erlang-questions mailing list