http_static: fix http(s) redirects 53/37753/2
authorDave Barach <dave@barachs.net>
Tue, 6 Dec 2022 13:39:29 +0000 (08:39 -0500)
committerDave Barach <dave@barachs.net>
Tue, 6 Dec 2022 16:25:15 +0000 (11:25 -0500)
commit55fbf55c17cc88884aa20e7070bc813000a3b193
tree0260b95dcb6d96edb1caced70231ee2d387fc60a
parent9067f3332ed0ddc143105b003e614f3f90719916
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
src/plugins/http/http.c
src/plugins/http/http.h
src/plugins/http_static/http_static.h
src/plugins/http_static/static_server.c