From 03292a30587f7795a88b8014fba33810c182c009 Mon Sep 17 00:00:00 2001 From: Wolfgang Draxinger Date: Tue, 18 Jun 2013 20:21:06 +0200 Subject: ... --- picohttp.c | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/picohttp.c b/picohttp.c index 1b2550e..6576297 100644 --- a/picohttp.c +++ b/picohttp.c @@ -568,30 +568,9 @@ static int16_t picohttpProcessHeaders ( char *hn; char *hv; -#define JUST_SKIP_HEADERS 0 -#if JUST_SKIP_HEADERS - while( !picohttpIsCRLF(ch) ) { - while( !picohttpIsCRLF( ch=picohttpIoSkipSpace(req->ioops, ch)) ){ - if( 0 > ( ch=picohttpIoGetch(req->ioops) ) ) { - return -PICOHTTP_STATUS_500_INTERNAL_SERVER_ERROR; - } - } - - ch = picohttpIoSkipOverCRLF(req->ioops, ch); - if( 0 > ch ) { - return -PICOHTTP_STATUS_500_INTERNAL_SERVER_ERROR; - } - if( !ch ) { - return -PICOHTTP_STATUS_400_BAD_REQUEST; - } - } -#else /* TODO: Add Header handling here */ while( !picohttpIsCRLF(ch) ) { /* Beginning of new header line */ - #if 0 - ch = picohttpIoGetch(req->ioops); - #endif if( 0 < ch && !picohttpIsCRLF(ch) ){ /* new header field OR field continuation */ if( picohttpIsLWS(ch) ) { @@ -658,7 +637,6 @@ static int16_t picohttpProcessHeaders ( req, headername, headervalue ); -#endif/*JUST_SKIP_HEADERS*/ return ch; } -- cgit v1.2.3