If the --https flag is passed, the server uses HTTPS instead of HTTP and uses the provided public-key and private-key provided using those flags. It also outputs Securely sprouting to ... instead of Sprouting to ... when in HTTPS mode.
To help with debugging, the error from the HTTP and the HTTPS server are loged.
I've tested what happens when HTTP requests are sent to the HTTPS server and it returns a 400 status code with Client sent an HTTP request to an HTTPS server. for the response body.
If the
--https
flag is passed, the server uses HTTPS instead of HTTP and uses the providedpublic-key
andprivate-key
provided using those flags. It also outputsSecurely sprouting to ...
instead ofSprouting to ...
when in HTTPS mode.To help with debugging, the error from the HTTP and the HTTPS server are loged.
I've tested what happens when HTTP requests are sent to the HTTPS server and it returns a
400
status code withClient sent an HTTP request to an HTTPS server.
for the response body.