Browse Source

parser: Fix parsing of Retry-After header

- Allow no space between duration and optional comment
Hugh Waite 11 years ago
parent
commit
accfbe0abb
1 changed files with 1 additions and 0 deletions
  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 ';':
 				case '\r':
 				case '\r':
 				case '\n':
 				case '\n':
+				case '(':
 					goto found;
 					goto found;
 				default:
 				default:
 					/* invalid char */
 					/* invalid char */