mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +00:00
Drop multi-byte characters from the test, which are not allowed.
This commit is contained in:
parent
7d81c10914
commit
ceea67add9
1 changed files with 1 additions and 1 deletions
|
|
@ -83,7 +83,7 @@ class TestHTTPCookie < Test::Unit::TestCase
|
|||
def test_parse_too_long_cookie
|
||||
uri = URI.parse 'http://example'
|
||||
|
||||
cookie_str = "foo=#{'クッキー' * 340}; path=/ab/"
|
||||
cookie_str = "foo=#{'Cookie' * 680}; path=/ab/"
|
||||
assert_equal(HTTP::Cookie::MAX_LENGTH - 1, cookie_str.bytesize)
|
||||
|
||||
assert_equal 1, HTTP::Cookie.parse(cookie_str, :origin => uri).size
|
||||
|
|
|
|||
Loading…
Reference in a new issue