mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36694 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9933a6019f
commit
b3a4461df2
6 changed files with 21 additions and 14 deletions
|
@ -71,7 +71,7 @@ class CGIModrubyTest < Test::Unit::TestCase
|
|||
'status' => '200 OK',
|
||||
'location' => 'http://www.example.com/',
|
||||
}
|
||||
actual = cgi.header(options)
|
||||
cgi.header(options)
|
||||
assert_equal('200 OK', req.status_line) # should be '302 Found' ?
|
||||
assert_equal(302, req.status)
|
||||
assert_equal('http://www.example.com/', req.headers_out['location'])
|
||||
|
@ -113,6 +113,7 @@ class Apache #:nodoc:
|
|||
def hash.add(name, value)
|
||||
(self[name] ||= []) << value
|
||||
end
|
||||
@http_header = nil
|
||||
@headers_out = hash
|
||||
@status_line = nil
|
||||
@status = nil
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue