diff options
author | Valentin Bartenev <vbart@nginx.com> | 2020-03-21 01:39:00 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2020-03-21 01:39:00 +0300 |
commit | c63b498f9416d26c1288a86ae4fc0b6007a16142 (patch) | |
tree | 7fe911579cc7f3aac50a0a649236195127cf767e /src/nxt_http.h | |
parent | 35d6f84426cfaa27587456a8ebb81b13f60e697a (diff) | |
download | unit-c63b498f9416d26c1288a86ae4fc0b6007a16142.tar.gz unit-c63b498f9416d26c1288a86ae4fc0b6007a16142.tar.bz2 |
Implemented "location" option for "return" action.
This allows to specify redirects:
{
"action": {
"return": 301,
"location": "https://www.example.com/"
}
}
Diffstat (limited to '')
-rw-r--r-- | src/nxt_http.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nxt_http.h b/src/nxt_http.h index a86b77f9..638affc8 100644 --- a/src/nxt_http.h +++ b/src/nxt_http.h @@ -23,6 +23,8 @@ typedef enum { NXT_HTTP_FOUND = 302, NXT_HTTP_SEE_OTHER = 303, NXT_HTTP_NOT_MODIFIED = 304, + NXT_HTTP_TEMPORARY_REDIRECT = 307, + NXT_HTTP_PERMANENT_REDIRECT = 308, NXT_HTTP_BAD_REQUEST = 400, NXT_HTTP_FORBIDDEN = 403, |