mirror of
https://github.com/samsonjs/http-cookie.git
synced 2026-03-25 08:55:53 +00:00
Allow aliases because YAML.dump generates aliases when it sees multiple occurrences of an object
This commit is contained in:
parent
7a1bf4fbb3
commit
2c220f44dd
1 changed files with 1 additions and 1 deletions
|
|
@ -76,7 +76,7 @@ class HTTP::CookieJar::YAMLSaver < HTTP::CookieJar::AbstractSaver
|
|||
|
||||
if YAML.name == 'Psych' && Psych::VERSION >= '3.1'
|
||||
def load_yaml(yaml)
|
||||
YAML.safe_load(yaml, :permitted_classes => %w[Time HTTP::Cookie Mechanize::Cookie DomainName])
|
||||
YAML.safe_load(yaml, :permitted_classes => %w[Time HTTP::Cookie Mechanize::Cookie DomainName], :aliases => true)
|
||||
end
|
||||
else
|
||||
def load_yaml(yaml)
|
||||
|
|
|
|||
Loading…
Reference in a new issue