From 55fbf55c17cc88884aa20e7070bc813000a3b193 Mon Sep 17 00:00:00 2001 From: Dave Barach Date: Tue, 6 Dec 2022 08:39:29 -0500 Subject: 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 Change-Id: Ie1452eaf61c6f67311fbab092bc1fe03050bf94f --- src/plugins/http/http.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/plugins/http/http.h') 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") \ -- cgit 1.2.3-korg