Browse Source

parser: Fix parser error when Retry-After is last header

- Prevent off-by-one error when CRLF is followed by CRLF
Hugh Waite 10 years ago
parent
commit
b4afd1375c
1 changed files with 0 additions and 2 deletions
  1. 0 2
      parser/parse_retry_after.c

+ 0 - 2
parser/parse_retry_after.c

@@ -72,8 +72,6 @@ found:
 	/* find the end of header */
 	for (; t<end; t++){
 		if (*t=='\n'){
-			if (((t+1)<end) && (*(t+1)=='\r'))
-				t++;
 			if (((t+1)<end) && (*(t+1)==' ' || *(t+1)=='\t')){
 				t++;
 				continue; /* line folding ... */