diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-12-07 02:20:18 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-12-06 18:21:33 -0800 |
commit | e8dd3e13b9a9f548a3138debd09e87fbb69e3998 (patch) | |
tree | 1a364fe5d6d946fc1ad70e2cb88fe4f02c634c48 /ext/unicorn_http | |
parent | 65c051d3254f6a7318cbb1ffc319b6ad5eef2f8c (diff) | |
download | unicorn-e8dd3e13b9a9f548a3138debd09e87fbb69e3998.tar.gz |
This is allowed according to RFC 2396, section 3.3 and matches the behavior of URI.parse, as well.
Diffstat (limited to 'ext/unicorn_http')
-rw-r--r-- | ext/unicorn_http/unicorn_http_common.rl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/unicorn_http/unicorn_http_common.rl b/ext/unicorn_http/unicorn_http_common.rl index 5d46087..041dfec 100644 --- a/ext/unicorn_http/unicorn_http_common.rl +++ b/ext/unicorn_http/unicorn_http_common.rl @@ -33,7 +33,7 @@ query = ( uchar | reserved )* %query_string ; param = ( pchar | "/" )* ; params = ( param ( ";" param )* ) ; - rel_path = ( path? %request_path (";" params)? ) ("?" %start_query query)?; + rel_path = (path? (";" params)? %request_path) ("?" %start_query query)?; absolute_path = ( "/"+ rel_path ); path_uri = absolute_path > mark %request_uri; Absolute_URI = (scheme "://" host_with_port path_uri); |