diff options
author | Dave Barach <dave@barachs.net> | 2022-12-06 08:39:29 -0500 |
---|---|---|
committer | Dave Barach <dave@barachs.net> | 2022-12-06 11:25:15 -0500 |
commit | 55fbf55c17cc88884aa20e7070bc813000a3b193 (patch) | |
tree | 0260b95dcb6d96edb1caced70231ee2d387fc60a /src/plugins/http/http.h | |
parent | 9067f3332ed0ddc143105b003e614f3f90719916 (diff) |
http_static: fix http(s) redirects
Add an http redirect template to generate correct-looking "301 Moved
Permanently" replies.
Supply a default value of 1<<31 for the use_ptr_thresh config parameter.
Expose hss_session_get() so friend plugins which register GET / POST
handlers with the http_static server can add data to the session fifos.
Type: fix
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: Ie1452eaf61c6f67311fbab092bc1fe03050bf94f
Diffstat (limited to 'src/plugins/http/http.h')
-rw-r--r-- | src/plugins/http/http.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/http/http.h b/src/plugins/http/http.h index 04272aee6d6..b11e0da580d 100644 --- a/src/plugins/http/http.h +++ b/src/plugins/http/http.h @@ -95,6 +95,7 @@ typedef enum http_content_type_ #define foreach_http_status_code \ _ (200, OK, "200 OK") \ + _ (301, MOVED, "301 Moved Permanently") \ _ (400, BAD_REQUEST, "400 Bad Request") \ _ (404, NOT_FOUND, "404 Not Found") \ _ (405, METHOD_NOT_ALLOWED, "405 Method Not Allowed") \ |