diff options
author | 2008-11-06 09:47:16 -0500 | |
---|---|---|
committer | 2008-11-06 09:47:16 -0500 | |
commit | 027f68ea322f9a52c3440a8d88be8d924b5c0395 (patch) | |
tree | a2eeed536be5e7cb6b43bf4bc8c8b48af01784a0 /src/c/driver.c | |
parent | d7bd7d38e8f785b7366495ce977379929e5eb913 (diff) |
Request header reading works
Diffstat (limited to 'src/c/driver.c')
-rw-r--r-- | src/c/driver.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/c/driver.c b/src/c/driver.c index db982d96..4c54d3ba 100644 --- a/src/c/driver.c +++ b/src/c/driver.c @@ -135,7 +135,7 @@ static void *worker(void *data) { if (s = strstr(buf, "\r\n\r\n")) { failure_kind fk; - char *cmd, *path, path_copy[uw_bufsize+1], *inputs; + char *cmd, *path, *headers, path_copy[uw_bufsize+1], *inputs; *s = 0; @@ -145,6 +145,7 @@ static void *worker(void *data) { } *s = 0; + headers = s + 2; cmd = s = buf; printf("Read: %s\n", buf); @@ -208,7 +209,7 @@ static void *worker(void *data) { uw_write(ctx, "<html>"); strcpy(path_copy, path); - fk = uw_begin(ctx, path_copy); + fk = uw_begin(ctx, headers, path_copy); if (fk == SUCCESS) { uw_write(ctx, "</html>"); |