diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-04-21 11:14:56 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-04-21 11:16:41 -0700 |
commit | 3dc43b27e2ab2740acda0514bb0d9562810b3df1 (patch) | |
tree | 944a9c5f86d5d7c876209a342932d77830cac0e0 /ext/unicorn/http11/http11_parser_common.rl | |
parent | 3871cb11cfb68b6fa02a646caf3765e309d38494 (diff) | |
download | unicorn-3dc43b27e2ab2740acda0514bb0d9562810b3df1.tar.gz |
They aren't common, but apparently there exist URLs with them, so we'll support them.
Diffstat (limited to 'ext/unicorn/http11/http11_parser_common.rl')
-rw-r--r-- | ext/unicorn/http11/http11_parser_common.rl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/unicorn/http11/http11_parser_common.rl b/ext/unicorn/http11/http11_parser_common.rl index 567ed6b..ae01a55 100644 --- a/ext/unicorn/http11/http11_parser_common.rl +++ b/ext/unicorn/http11/http11_parser_common.rl @@ -25,7 +25,7 @@ # URI schemes and absolute paths scheme = ( "http"i ("s"i)? ) $downcase_char >mark %scheme; - hostname = (alnum | "-" | ".")+; + hostname = (alnum | "-" | "." | "_")+; host_with_port = (hostname (":" digit*)?) >mark %host; path = ( pchar+ ( "/" pchar* )* ) ; |