proc: expose HTTP_AUTH_USER and HTTP_AUTH_PASS
authorJo-Philipp Wich <jo@mein.io>
Sun, 2 Jul 2017 14:20:45 +0000 (16:20 +0200)
committerJo-Philipp Wich <jo@mein.io>
Sun, 2 Jul 2017 14:20:45 +0000 (16:20 +0200)
commitc0a569de53db4a6cafa736386fd6feade4cd09f7
treeef9236f0dde78435da8e56400cd252088e94dc64
parentad93be7632963da1bd5b67d71021d1d63ecfd909
proc: expose HTTP_AUTH_USER and HTTP_AUTH_PASS

Mimic other web servers like Nginx or Apache and expose the parsed basic
auth information as HTTP_AUTH_USER and HTTP_AUTH_PASS environment variables
to CGI processes.

This also restores login-from-basic-auth functionality in LuCI.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
proc.c