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 năm trước cách đây
mục cha
commit
b4afd1375c
1 tập tin đã thay đổi với 0 bổ sung2 xóa
  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 */
 	/* find the end of header */
 	for (; t<end; t++){
 	for (; t<end; t++){
 		if (*t=='\n'){
 		if (*t=='\n'){
-			if (((t+1)<end) && (*(t+1)=='\r'))
-				t++;
 			if (((t+1)<end) && (*(t+1)==' ' || *(t+1)=='\t')){
 			if (((t+1)<end) && (*(t+1)==' ' || *(t+1)=='\t')){
 				t++;
 				t++;
 				continue; /* line folding ... */
 				continue; /* line folding ... */