diff options
author | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2015-11-28 15:59:34 +0200 |
---|---|---|
committer | Costa Tsaousis (ktsaou) <costa@tsaousis.gr> | 2015-11-28 15:59:34 +0200 |
commit | 81a61a59f6344651801aa58268ce2dba9596ccb1 (patch) | |
tree | 371174aef5d709dd2f168d83d59a20f7f62753e8 /src/web_client.h | |
parent | 17b945890c89b33a08d0d36d2c60e9193d55831d (diff) |
added option to allow running as a user and serving files owned by another; added support for serving files in directories within the netdata web dir
Diffstat (limited to 'src/web_client.h')
-rwxr-xr-x | src/web_client.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/web_client.h b/src/web_client.h index a09fdd2a6c..a32fce318a 100755 --- a/src/web_client.h +++ b/src/web_client.h @@ -31,6 +31,8 @@ struct response { BUFFER *header_output; // internal use BUFFER *data; // our response data buffer + int code; // the HTTP response code + long rlen; // if non-zero, the excepted size of ifd (input) long sent; // current data length sent to output @@ -77,6 +79,8 @@ struct web_client { extern struct web_client *web_clients; +extern uid_t web_files_uid(void); + extern struct web_client *web_client_create(int listener); extern struct web_client *web_client_free(struct web_client *w); |