aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2013-06-18 20:21:06 +0200
committerWolfgang Draxinger <Wolfgang.Draxinger@physik.uni-muenchen.de>2013-06-18 20:21:06 +0200
commit03292a30587f7795a88b8014fba33810c182c009 (patch)
treefb74b3c70b29093bae996e7d29095db41e9c9dd2
parent47e13329da36b76918d44d51be78ef9e5584fcc0 (diff)
downloadlitheweb-03292a30587f7795a88b8014fba33810c182c009.tar.gz
litheweb-03292a30587f7795a88b8014fba33810c182c009.tar.bz2
...
-rw-r--r--picohttp.c22
1 files changed, 0 insertions, 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;
}