diff options
author | Wolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de> | 2013-06-18 20:21:06 +0200 |
---|---|---|
committer | Wolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de> | 2013-06-18 20:21:06 +0200 |
commit | 03292a30587f7795a88b8014fba33810c182c009 (patch) | |
tree | fb74b3c70b29093bae996e7d29095db41e9c9dd2 | |
parent | 47e13329da36b76918d44d51be78ef9e5584fcc0 (diff) | |
download | litheweb-03292a30587f7795a88b8014fba33810c182c009.tar.gz litheweb-03292a30587f7795a88b8014fba33810c182c009.tar.bz2 |
...
-rw-r--r-- | picohttp.c | 22 |
1 files changed, 0 insertions, 22 deletions
@@ -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; } |