mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +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.
|
||||
def path=(path)
|
||||
path = check_string_type(path) or
|
||||
raise TypeError, "#{path.class} is not a String"
|
||||
@path = HTTP::Cookie.normalize_path(path)
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue