зеркало из https://github.com/github/ruby.git
* lib/cgi/session.rb (close): fixed reversed condition.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@1189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
50ce575ce4
Коммит
756dcb0034
|
@ -1,3 +1,7 @@
|
||||||
|
Thu Feb 15 11:33:49 2001 Shugo Maeda <shugo@ruby-lang.org>
|
||||||
|
|
||||||
|
* lib/cgi/session.rb (close): fixed reversed condition.
|
||||||
|
|
||||||
Wed Feb 14 17:28:24 2001 Shugo Maeda <shugo@ruby-lang.org>
|
Wed Feb 14 17:28:24 2001 Shugo Maeda <shugo@ruby-lang.org>
|
||||||
|
|
||||||
* lib/net/imap.rb: supports unknown resp_text_code.
|
* lib/net/imap.rb: supports unknown resp_text_code.
|
||||||
|
|
|
@ -134,14 +134,13 @@ class CGI
|
||||||
end
|
end
|
||||||
|
|
||||||
def close
|
def close
|
||||||
return unless @f.closed?
|
return if @f.closed?
|
||||||
update
|
update
|
||||||
@f.close
|
@f.close
|
||||||
end
|
end
|
||||||
|
|
||||||
def delete
|
def delete
|
||||||
path = @f.path
|
path = @f.path
|
||||||
return unless @f.closed?
|
|
||||||
@f.close
|
@f.close
|
||||||
File::unlink path
|
File::unlink path
|
||||||
end
|
end
|
||||||
|
|
Загрузка…
Ссылка в новой задаче