elixir-maru / maru

Elixir RESTful Framework
https://maru.readme.io
BSD 3-Clause "New" or "Revised" License
1.32k stars 84 forks source link

Why redirect method on Plug.Conn in Maru would change the request method to "GET" #128

Closed TIZ36 closed 3 years ago

lianhj commented 3 years ago

in response.ex line 30 function redirect, limit the code in [301, 302], it will change your post method to get, change code to 307 works for me. I think the code should be a param in options, so we can customize image