浏览代码

parser: Fix parsing of Retry-After header

- Allow no space between duration and optional comment
Hugh Waite 11 年之前
父节点
当前提交
accfbe0abb
共有 1 个文件被更改,包括 1 次插入0 次删除
  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 */