diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-20 23:51:51 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2010-03-20 23:51:51 +0000 |
commit | 95b9bb0f69fa4ed2bc2c414a614d1723b1e59e21 (patch) | |
tree | 2ff64ee3b570d8e269e7e5a24e33a76944bf8d96 /contrib/package/uhttpd/src/uhttpd-cgi.c | |
parent | 1ecf7ac9fa9499d79ccebf805090b2fd1310f3d9 (diff) |
uhttpd: add basic auth infrastructure
Diffstat (limited to 'contrib/package/uhttpd/src/uhttpd-cgi.c')
-rw-r--r-- | contrib/package/uhttpd/src/uhttpd-cgi.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/contrib/package/uhttpd/src/uhttpd-cgi.c b/contrib/package/uhttpd/src/uhttpd-cgi.c index a89dffa61..9e9e96410 100644 --- a/contrib/package/uhttpd/src/uhttpd-cgi.c +++ b/contrib/package/uhttpd/src/uhttpd-cgi.c @@ -248,6 +248,10 @@ void uh_cgi_request(struct client *cl, struct http_request *req, struct path_inf /* request url */ setenv("REQUEST_URI", req->url, 1); + /* remote user */ + if( req->realm ) + setenv("REMOTE_USER", req->realm->user, 1); + /* request message headers */ foreach_header(i, req->headers) { |