diff options
Diffstat (limited to 'ext/unicorn/http11/http11_parser_common.rl')
-rw-r--r-- | ext/unicorn/http11/http11_parser_common.rl | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/unicorn/http11/http11_parser_common.rl b/ext/unicorn/http11/http11_parser_common.rl index 20fef92..567ed6b 100644 --- a/ext/unicorn/http11/http11_parser_common.rl +++ b/ext/unicorn/http11/http11_parser_common.rl @@ -24,9 +24,9 @@ token = (ascii -- (CTL | tspecials)); # URI schemes and absolute paths - scheme = ( "http"i ("s"i)? ) $downcase_char; + scheme = ( "http"i ("s"i)? ) $downcase_char >mark %scheme; hostname = (alnum | "-" | ".")+; - host_with_port = (hostname (":" digit*)?); + host_with_port = (hostname (":" digit*)?) >mark %host; path = ( pchar+ ( "/" pchar* )* ) ; query = ( uchar | reserved )* %query_string ; |