From ccb6ae48b135913588affdd82e11a11054a14a80 Mon Sep 17 00:00:00 2001 From: Wolfgang Draxinger Date: Tue, 12 Mar 2013 22:07:37 +0100 Subject: Tue Mar 12 22:07:37 CET 2013 --- picohttp.c | 5 ----- test/bsd_socket.c | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/picohttp.c b/picohttp.c index a7f0066..0420d94 100644 --- a/picohttp.c +++ b/picohttp.c @@ -2,7 +2,6 @@ #include #include -#include #include #include @@ -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); } -- cgit v1.2.3