Parcourir la source

parser: Fix parsing of Retry-After header

- Allow no space between duration and optional comment
Hugh Waite il y a 11 ans
Parent
commit
accfbe0abb
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      parser/parse_retry_after.c

+ 1 - 0
parser/parse_retry_after.c

@@ -59,6 +59,7 @@ char* parse_retry_after(char* const buf, const char* const end, unsigned* const
 				case ';':
 				case '\r':
 				case '\n':
+				case '(':
 					goto found;
 				default:
 					/* invalid char */