diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-04-21 11:14:51 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-04-21 11:16:35 -0700 |
commit | b031b9d2cb1bd0434ce2891ce20a65a5b5b29796 (patch) | |
tree | 1c7f97ba44ae08e751bff4ba59f0c8f308ebe22d /ext/unicorn/http11/http11_parser_common.rl | |
parent | b57718fb7ed6f813f41b655ecbab1f6edd64ded0 (diff) | |
download | unicorn-b031b9d2cb1bd0434ce2891ce20a65a5b5b29796.tar.gz |
We now parse the scheme, host and port from Absolute URIs and ignore them if the equivalents are specified in the other headers.
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 ; |