mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-04-26 14:47:43 +00:00
Make path= accept a string-like.
This commit is contained in:
parent
59370c79c3
commit
ae0b3834e7
1 changed files with 2 additions and 0 deletions
|
|
@ -421,6 +421,8 @@ class HTTP::Cookie
|
||||||
|
|
||||||
# See #path.
|
# See #path.
|
||||||
def path=(path)
|
def path=(path)
|
||||||
|
path = check_string_type(path) or
|
||||||
|
raise TypeError, "#{path.class} is not a String"
|
||||||
@path = HTTP::Cookie.normalize_path(path)
|
@path = HTTP::Cookie.normalize_path(path)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue