* 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
Родитель 5836962f48
Коммит 8549059d76
3 изменённых файлов: 9 добавлений и 4 удалений

Просмотреть файл

@ -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>
* eval.c (rb_mod_refine): set RMODULE_IS_REFINEMENT to a created

8
NEWS
Просмотреть файл

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

Просмотреть файл

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