diff options
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 a89dffa612..9e9e964102 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) { |