File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -4995,8 +4995,13 @@ ngx.redirect
49954995
49964996Issue 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
50015006Here is an example assuming the current server name is ` localhost ` and that it is listening on port 1984:
50025007
Original file line number Diff line number Diff line change @@ -4160,8 +4160,13 @@ It is recommended that a coding style that combines this method call with the <c
41604160
41614161Issue 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
41664171Here is an example assuming the current server name is <code>localhost </code> and that it is listening on port 1984:
41674172
You can’t perform that action at this time.
0 commit comments