Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect only for GET method #26

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

emeric-martineau
Copy link

@emeric-martineau emeric-martineau commented Oct 30, 2020

When we want use Pow, in documentation is explain to put this:

scope "/" do
    pipe_through :browser

    pow_routes()
    pow_extension_routes()
end

but some routes use POST, PATCH... method.
In this case, we must rewrite routes to extract GET to allow i18n with set_locale.
In other way, in my RFC understanding, redirect is only for GET and HEAD : https://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html

@coveralls
Copy link

coveralls commented Oct 30, 2020

Coverage Status

Coverage increased (+0.1%) to 98.438% when pulling ac8a3ab on emeric-martineau:master into 9b3b496 on smeevil:master.

@emeric-martineau
Copy link
Author

Hi @smeevil,

any news for this PR ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants