All pastes #335058 Raw Edit

Miscellany

public text v1 · immutable
·published 2007-02-01 02:22 UTC
rendered paste body
[root@anoka networking]# diff -u httpd.c-old httpd.c
--- httpd.c-old 2007-01-31 16:58:20.000000000 -0600
+++ httpd.c     2007-01-31 16:58:36.000000000 -0600
@@ -1226,7 +1226,7 @@
                                 * "chopped up into small chunks" syndrome here */
                                rbuf[count] = '\0';
                                /* check to see if the user script added headers */
-#define HTTP_200 "HTTP/1.0 200 OK\r\n\r\n"
+#define HTTP_200 "HTTP/1.0 200 OK\r\n"
                                if (memcmp(rbuf, HTTP_200, 4) != 0) {
                                        /* there is no "HTTP", do it ourself */
                                        full_write(s, HTTP_200, sizeof(HTTP_200)-1);