diff options
author | Eric Wong <normalperson@yhbt.net> | 2009-09-01 17:57:31 -0700 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2009-09-01 18:14:20 -0700 |
commit | d48ab6552b42fcdd70de1c6acd09312461edf705 (patch) | |
tree | f793cacfc74984a83c8bf7b84b52d753c72b0e37 /ext | |
parent | 284f146e97acaf2b300674539004a6e573a5a0df (diff) | |
download | unicorn-d48ab6552b42fcdd70de1c6acd09312461edf705.tar.gz |
ref: rfc 2616, section 5.1.1 http://www.w3.org/Protocols/rfc2616/rfc2616-sec5.html#sec5.1.1 Current version of Rack::Lint agrees with us, too. While I've yet to encounter actual usage of non-upper REQUEST_METHODs, we might as well support what Rack supports.
Diffstat (limited to 'ext')
-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 9b51ba1..bb2a3ef 100644 --- a/ext/unicorn_http/unicorn_http_common.rl +++ b/ext/unicorn_http/unicorn_http_common.rl @@ -40,7 +40,7 @@ Request_URI = ((absolute_path | "*") >mark %request_uri) | Absolute_URI; Fragment = ( uchar | reserved )* >mark %fragment; - Method = ( upper | digit | safe ){1,20} >mark %request_method; + Method = (token){1,20} >mark %request_method; http_number = ( digit+ "." digit+ ) ; HTTP_Version = ( "HTTP/" http_number ) >mark %http_version ; |