Skip to content

Commit ea92f7e

Browse files
committed
doc: documented the support of 307 status argument value in ngx.redirect.
1 parent 5134a9c commit ea92f7e

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

README.markdown

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4995,8 +4995,13 @@ ngx.redirect
49954995

49964996
Issue an `HTTP 301` or `302` redirection to `uri`.
49974997

4998-
The optional `status` parameter specifies whether
4999-
`301` or `302` to be used. It is `302` (`ngx.HTTP_MOVED_TEMPORARILY`) by default.
4998+
The optional `status` parameter specifies the HTTP status code to be used. The following status codes are supported right now:
4999+
5000+
* `301`
5001+
* `302` (default)
5002+
* `307`
5003+
5004+
It is `302` (`ngx.HTTP_MOVED_TEMPORARILY`) by default.
50005005

50015006
Here is an example assuming the current server name is `localhost` and that it is listening on port 1984:
50025007

doc/HttpLuaModule.wiki

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4160,8 +4160,13 @@ It is recommended that a coding style that combines this method call with the <c
41604160
41614161
Issue an <code>HTTP 301</code> or <code>302</code> redirection to <code>uri</code>.
41624162
4163-
The optional <code>status</code> parameter specifies whether
4164-
<code>301</code> or <code>302</code> to be used. It is <code>302</code> (<code>ngx.HTTP_MOVED_TEMPORARILY</code>) by default.
4163+
The optional <code>status</code> parameter specifies the HTTP status code to be used. The following status codes are supported right now:
4164+
4165+
* <code>301</code>
4166+
* <code>302</code> (default)
4167+
* <code>307</code>
4168+
4169+
It is <code>302</code> (<code>ngx.HTTP_MOVED_TEMPORARILY</code>) by default.
41654170
41664171
Here is an example assuming the current server name is <code>localhost</code> and that it is listening on port 1984:
41674172

0 commit comments

Comments
 (0)