* lib/cgi/core.rb: alias CGI#http_header to CGI#header .

[Bug #7286]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
xibbar 2012-11-07 06:36:49 +00:00
parent 5836962f48
commit 8549059d76
3 changed files with 9 additions and 4 deletions

View File

@ -1,3 +1,7 @@
Wed Nov 7 15:34:12 2012 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
* lib/cgi/core.rb: alias CGI#http_header to CGI#header.
Wed Nov 7 12:49:39 2012 Shugo Maeda <shugo@ruby-lang.org> Wed Nov 7 12:49:39 2012 Shugo Maeda <shugo@ruby-lang.org>
* eval.c (rb_mod_refine): set RMODULE_IS_REFINEMENT to a created * eval.c (rb_mod_refine): set RMODULE_IS_REFINEMENT to a created

8
NEWS
View File

@ -254,10 +254,10 @@ with all sufficient information, see the ChangeLog file.
* cgi * cgi
* Add HTML5 tag maker. * Add HTML5 tag maker.
* incompatible changes: * CGI#header has been renamed to CGI#http_header and
* CGI#header has been renamed to CGI#http_header. aliased to CGI#header.
CGI#header is now used by the HTML5 tag maker to * When HTML5 tagmaker called, overwrite CGI#header,
create a <header> element. CGI#header function is to create a <header> element.
=== Language changes === Language changes

View File

@ -171,6 +171,7 @@ class CGI
return buf return buf
end end
end # http_header() end # http_header()
alias :header :http_header
def _header_for_string(content_type) #:nodoc: def _header_for_string(content_type) #:nodoc:
buf = '' buf = ''