aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2013-03-12 22:07:37 +0100
committerWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2013-03-12 22:07:37 +0100
commitccb6ae48b135913588affdd82e11a11054a14a80 (patch)
tree49e833e58affbfe6fddec4b281d41aa35fc6c3c5
parent5ff179fad970eb0a878a27511d6c90419bac2cdf (diff)
downloadlitheweb-ccb6ae48b135913588affdd82e11a11054a14a80.tar.gz
litheweb-ccb6ae48b135913588affdd82e11a11054a14a80.tar.bz2
Tue Mar 12 22:07:37 CET 2013
-rw-r--r--picohttp.c5
-rw-r--r--test/bsd_socket.c2
2 files changed, 1 insertions, 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 <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);
}