Skip to content

Conversation

@tmthrgd
Copy link
Contributor

@tmthrgd tmthrgd commented Aug 25, 2016

ngx.redirect() is missing 303 See Other support which this PR adds. This PR also adds the appropriate test case. It makes no other changes. This PR is based on #416 and 932584b.

I hereby granted the copyright of the changes in this pull request to the authors of this lua-nginx-module project.

@agentzh
Copy link
Member

agentzh commented Sep 3, 2016

@tmthrgd Thanks for the patch!

@bungle @doujiang24 @yangshuxin What do you think of this?

@doujiang24
Copy link
Member

I agree with this PR.

t/022-redirect.t Outdated
=== TEST 12: explicit 303
--- config
location /read {
content_by_lua '
Copy link
Member

Choose a reason for hiding this comment

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

we'd better use content_by_lua_block instead content_by_lua here :)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That would seem sensible from my point of view. Do you want me to change that here - so the tests are changed when they're touched - or do you want me to leave this and have that done separately?

Copy link
Member

Choose a reason for hiding this comment

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

I think it's better to change that here - we usually use *_by_lua_block for the new test cases :)

@bungle
Copy link
Member

bungle commented Sep 4, 2016

Yes, I think we should have this.

@tmthrgd
Copy link
Contributor Author

tmthrgd commented Oct 18, 2016

Is this good to merge?

@agentzh
Copy link
Member

agentzh commented Oct 25, 2016

@tmthrgd Looking good to me. Will you update the doc/HttpLuaModule.wiki file accordingly? Thanks!

@tmthrgd
Copy link
Contributor Author

tmthrgd commented Oct 25, 2016

@agentzh It wasn't update in either of #416 and 932584b so it doesn't even reflect those changes yet - should I just add the 303 to it?

@agentzh
Copy link
Member

agentzh commented Oct 25, 2016

@tmthrgd Yes, please. If a new feature is not documented, users won't find it or use it.

@agentzh
Copy link
Member

agentzh commented Nov 2, 2016

@tmthrgd I've just added docs for the support for 307 in ngx.redirect in commit ea92f7e.

@tmthrgd
Copy link
Contributor Author

tmthrgd commented Nov 4, 2016

@agentzh I've just added 303 to the docs consistent with ea92f7e.

@agentzh
Copy link
Member

agentzh commented Nov 4, 2016

@tmthrgd Looking good to me. Thanks for your updates!

Unfortunately this PR has already missed the merge window of the upcoming OpenResty release, 1.11.2.2. We have to hold this till OpenResty 1.11.2.2 is out. Sorry for the inconvenience.

@tmthrgd
Copy link
Contributor Author

tmthrgd commented Dec 9, 2016

Will this be able to be merged for the next release?

@agentzh
Copy link
Member

agentzh commented Dec 9, 2016

@tmthrgd Yes. Sorry for the delay on my side. Been very busy with the OpenResty conference this week.

@agentzh
Copy link
Member

agentzh commented Dec 15, 2016

@tmthrgd Just merged into master with minor edits in your commit log message. Many thanks!

@agentzh agentzh closed this Dec 15, 2016
@tmthrgd tmthrgd deleted the redirect-see-other branch December 15, 2016 02:02
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