cookie order: do not rely on value

This commit is contained in:
HoneyryderChuck 2021-06-26 15:13:21 +03:00
parent 2510f5730a
commit 9c62f46189

View File

@ -43,8 +43,7 @@ module HTTPX
# Precedence: 1. longer path 2. older creation
(@name <=> other.name).nonzero? ||
(other.path.length <=> @path.length).nonzero? ||
(@created_at <=> other.created_at).nonzero? ||
@value <=> other.value
(@created_at <=> other.created_at).nonzero?
end
class << self