Mercurial > urweb
comparison src/c/driver.c @ 401:cc71fb7e5e54
Remove printing of HTTP headers
author | Adam Chlipala <adamc@hcoop.net> |
---|---|
date | Tue, 21 Oct 2008 13:56:38 -0400 |
parents | e756d3a47726 |
children | b10132434adc |
comparison
equal
deleted
inserted
replaced
400:e756d3a47726 | 401:cc71fb7e5e54 |
---|---|
118 if (s = strstr(buf, "\r\n\r\n")) { | 118 if (s = strstr(buf, "\r\n\r\n")) { |
119 char *cmd, *path, path_copy[uw_bufsize+1], *inputs; | 119 char *cmd, *path, path_copy[uw_bufsize+1], *inputs; |
120 | 120 |
121 *s = 0; | 121 *s = 0; |
122 | 122 |
123 printf("Read: %s\n", buf); | |
124 | |
125 if (!(s = strstr(buf, "\r\n"))) { | 123 if (!(s = strstr(buf, "\r\n"))) { |
126 fprintf(stderr, "No newline in buf\n"); | 124 fprintf(stderr, "No newline in buf\n"); |
127 break; | 125 break; |
128 } | 126 } |
129 | 127 |
130 *s = 0; | 128 *s = 0; |
131 cmd = s = buf; | 129 cmd = s = buf; |
130 | |
131 printf("Read: %s\n", buf); | |
132 | 132 |
133 if (!strsep(&s, " ")) { | 133 if (!strsep(&s, " ")) { |
134 fprintf(stderr, "No first space in HTTP command\n"); | 134 fprintf(stderr, "No first space in HTTP command\n"); |
135 break; | 135 break; |
136 } | 136 } |