mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
cookie.rb: revert part of r50496
* lib/cgi/cookie.rb (CGI::Cookie#secure): revert part of r50496, which is irrelevant to GH-887, as the document states that the argument must be a boolean. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50497 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a4344cb5b4
commit
228cfd02d5
1 changed files with 2 additions and 1 deletions
|
@ -128,7 +128,8 @@ class CGI
|
|||
#
|
||||
# +val+ must be a boolean.
|
||||
def secure=(val)
|
||||
@secure = !!val
|
||||
@secure = val if val == true or val == false
|
||||
@secure
|
||||
end
|
||||
|
||||
# Set whether the Cookie is a httponly cookie or not.
|
||||
|
|
Loading…
Reference in a new issue