aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--picohttp.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/picohttp.c b/picohttp.c
index af9f9b1..487a870 100644
--- a/picohttp.c
+++ b/picohttp.c
@@ -572,30 +572,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) ) {
@@ -662,7 +641,6 @@ static int16_t picohttpProcessHeaders (
req,
headername,
headervalue );
-#endif/*JUST_SKIP_HEADERS*/
return ch;
}