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

Make vibe.web.web.redirect similar to HTTPServerResponse.redirect #1948

Merged
merged 1 commit into from
Apr 2, 2018

Conversation

wilzbach
Copy link
Member

Provide the same API as HTTPServerResponse.redirect

@@ -378,6 +378,12 @@ void redirect(string url)
ctx.res.redirect(fullurl);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suppose status should be passed here....

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And found instead of Found ("deprecated")

/// ditto
void redirect(URL url, int status = HTTPStatus.Found)
@safe {
redirect(url.toString);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

... and here.

@wilzbach
Copy link
Member Author

Finally found time to rebase this PR - sorry for the forgetting to pass on status. Silly :S

@wilzbach
Copy link
Member Author

wilzbach commented Apr 2, 2018

Ping @s-ludwig - this has been ready for five months now ;-)

@s-ludwig s-ludwig merged commit b9985f4 into vibe-d:master Apr 2, 2018
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.

3 participants