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

Custom httpStatusCode in redirect() #324

Closed
wants to merge 45 commits into from

Conversation

ThomasTJdev
Copy link
Contributor

This allows the user to specify the redirect type.

Current solution
Currently it only allow for Http303 redirects.

After PR
This PR allows the user to specify the http status code:

redirect("/") # default 303
redirect("/", httpStatusCode = Http301)
redirect("/", httpStatusCode = Http302)
redirect("/", httpStatusCode = Http303)

ire4ever1190 and others added 30 commits December 1, 2022 17:59
…l test requirements are present

Only do this when nim version < 2.0
…Seq`

In contrast to `params` this returns a `Table[string, seq[string]]`.

Closes dom96#247
This is also the same implementation used in `paramValuesAsSeq` (except
for the return type), this way we ensure the same behaviour for the
parsing/decoding steps.
Currently the server throws a 'SIGSEGV: Illegal storage access. (Attempt
to read from nil?)'
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.

4 participants