mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
Fix url path length test
This commit is contained in:
parent
6f64bee090
commit
8b987eda4a
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ class Http11ParserTest < Test::Unit::TestCase
|
||||||
parser.reset
|
parser.reset
|
||||||
|
|
||||||
# Raise exception if URI path length > 2048
|
# Raise exception if URI path length > 2048
|
||||||
path = "/" + rand_data(2048, 100)
|
path = "/" + rand_data(2049, 100)
|
||||||
http = "GET #{path} HTTP/1.1\r\n\r\n"
|
http = "GET #{path} HTTP/1.1\r\n\r\n"
|
||||||
assert_raises Puma::HttpParserError do
|
assert_raises Puma::HttpParserError do
|
||||||
parser.execute(req, http, 0)
|
parser.execute(req, http, 0)
|
||||||
|
|
Loading…
Reference in a new issue