Mercurial > urweb
comparison src/c/driver.c @ 475:9babc5d2ec5a
Fix parsing of last input header
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Sat, 08 Nov 2008 10:58:59 -0500 |
parents | 0f128cbc2758 |
children | 667c0e54632a |
comparison
equal
deleted
inserted
replaced
474:70ee90105fce | 475:9babc5d2ec5a |
---|---|
135 | 135 |
136 if (s = strstr(buf, "\r\n\r\n")) { | 136 if (s = strstr(buf, "\r\n\r\n")) { |
137 failure_kind fk; | 137 failure_kind fk; |
138 char *cmd, *path, *headers, path_copy[uw_bufsize+1], *inputs; | 138 char *cmd, *path, *headers, path_copy[uw_bufsize+1], *inputs; |
139 | 139 |
140 *s = 0; | 140 s[2] = 0; |
141 | 141 |
142 if (!(s = strstr(buf, "\r\n"))) { | 142 if (!(s = strstr(buf, "\r\n"))) { |
143 fprintf(stderr, "No newline in buf\n"); | 143 fprintf(stderr, "No newline in buf\n"); |
144 break; | 144 break; |
145 } | 145 } |