Mercurial > urweb
diff src/c/fastcgi.c @ 1799:3d922a28370b
Basis.getenv
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Thu, 02 Aug 2012 16:33:25 -0400 |
parents | a6eab6820b37 |
children | 6745eafff617 |
line wrap: on
line diff
--- a/src/c/fastcgi.c Sun Jul 29 12:54:17 2012 -0400 +++ b/src/c/fastcgi.c Thu Aug 02 16:33:25 2012 -0400 @@ -229,6 +229,12 @@ 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 @@ query_string = ""; uw_set_headers(ctx, get_header, &hs); + uw_set_env(ctx, get_env, &hs); { request_result rr;