diff options
-rw-r--r-- | picohttp.c | 5 | ||||
-rw-r--r-- | test/bsd_socket.c | 2 |
2 files changed, 1 insertions, 6 deletions
@@ -2,7 +2,6 @@ #include <alloca.h> #include <string.h> -#include <stdio.h> #include <stdlib.h> #include <assert.h> @@ -488,10 +487,7 @@ static int16_t picohttpProcessHeaders ( /* FIXME: Add Header handling here */ while( !picohttpIsCRLF(ch) ) { - fprintf(stderr, "\n>>> 0x%02x ", (int)ch, stderr); - while( !picohttpIsCRLF( ch=picohttpIoSkipSpace(req->ioops, ch)) ){ - fputc(ch, stderr); if( 0 > ( ch=picohttpIoGetch(req->ioops) ) ) { return -PICOHTTP_STATUS_500_INTERNAL_SERVER_ERROR; } @@ -505,7 +501,6 @@ static int16_t picohttpProcessHeaders ( return -PICOHTTP_STATUS_400_BAD_REQUEST; } } - fputc('\n', stderr); return ch; } diff --git a/test/bsd_socket.c b/test/bsd_socket.c index 39f601d..02ee592 100644 --- a/test/bsd_socket.c +++ b/test/bsd_socket.c @@ -147,7 +147,7 @@ void rhFavicon(struct picohttpRequest *req) { fprintf(stderr, "handling request /favicon.ico\n"); - req->response.contenttype = "image/vnd.microsoft.icon"; + req->response.contenttype = "image/x-icon"; req->response.contentlength = sizeof(favicon_ico); picohttpResponseWrite(req, sizeof(favicon_ico), favicon_ico); } |