diff options
author | Adam Chlipala <adam@chlipala.net> | 2012-08-02 16:33:25 -0400 |
---|---|---|
committer | Adam Chlipala <adam@chlipala.net> | 2012-08-02 16:33:25 -0400 |
commit | fdc6c1310be60fbeb597400618473861f78676de (patch) | |
tree | 201d14d77f7f944545809bff02ae45fc826bb7e7 /src/c/fastcgi.c | |
parent | 722b0c632007ac6ea178b05695974e447b4288a3 (diff) |
Basis.getenv
Diffstat (limited to 'src/c/fastcgi.c')
-rw-r--r-- | src/c/fastcgi.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/c/fastcgi.c b/src/c/fastcgi.c index 5677af83..9e3c8d7e 100644 --- a/src/c/fastcgi.c +++ b/src/c/fastcgi.c @@ -229,6 +229,12 @@ static char *get_header(void *data, const char *h) { return search_nvps(hs->nvps, hs->uppercased); } +static char *get_env(void *data, const char *h) { + headers *hs = (headers *)data; + + return search_nvps(hs->nvps, h); +} + static int read_funny_len(unsigned char **buf, int *len) { if (*len <= 0) return -1; @@ -471,6 +477,7 @@ static void *worker(void *data) { query_string = ""; uw_set_headers(ctx, get_header, &hs); + uw_set_env(ctx, get_env, &hs); { request_result rr; |