Re: [OpenWrt-Devel] [PATCH] uhttpd2: Set HTTPS environment variable

2014-12-12 Thread Felix Fietkau
On 2014-12-11 23:36, Dan Staples wrote: > Currently, the only way for cgi scripts to determine if the request > was made over SSL seems to be to check if the SERVER_PORT environment > variable is set to 443, which is less than ideal. This sets the HTTPS > environment variable, like the first versio

[OpenWrt-Devel] [PATCH] uhttpd2: Set HTTPS environment variable

2014-12-11 Thread Dan Staples
Currently, the only way for cgi scripts to determine if the request was made over SSL seems to be to check if the SERVER_PORT environment variable is set to 443, which is less than ideal. This sets the HTTPS environment variable, like the first version of uhttpd. Signed-off-by: Dan Staples ---