2
0
Эх сурвалжийг харах

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

- Prevent off-by-one error when CRLF is followed by CRLF
Hugh Waite 10 жил өмнө
parent
commit
b4afd1375c

+ 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 ... */