* lib/cgi/core.rb: Documentation for CGI#header alias
Based on a patch by Marcus Stollsteimer [ruby-core:49585] [Bug #7405] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
7bfb6b2bc7
commit
ed7d776317
@ -1,3 +1,9 @@
|
|||||||
|
Fri Nov 23 02:40:00 2012 Zachary Scott <zachary@zacharyscott.net>
|
||||||
|
|
||||||
|
* lib/cgi/core.rb: Documentation for CGI#header alias
|
||||||
|
Based on a patch by Marcus Stollsteimer
|
||||||
|
[ruby-core:49585] [Bug #7405]
|
||||||
|
|
||||||
Thu Nov 22 23:48:10 2012 Narihiro Nakamura <authornari@gmail.com>
|
Thu Nov 22 23:48:10 2012 Narihiro Nakamura <authornari@gmail.com>
|
||||||
|
|
||||||
* gc.c (is_swept_object): extract from is_dead_object().
|
* gc.c (is_swept_object): extract from is_dead_object().
|
||||||
|
@ -171,6 +171,13 @@ class CGI
|
|||||||
return buf
|
return buf
|
||||||
end
|
end
|
||||||
end # http_header()
|
end # http_header()
|
||||||
|
|
||||||
|
# This method is an alias for #http_header, when HTML5 tag maker is inactive.
|
||||||
|
#
|
||||||
|
# NOTE: use #http_header to create HTTP header blocks, this alias is only
|
||||||
|
# provided for backwards compatibility.
|
||||||
|
#
|
||||||
|
# Using #header with the HTML5 tag maker will create a <header> element.
|
||||||
alias :header :http_header
|
alias :header :http_header
|
||||||
|
|
||||||
def _header_for_string(content_type) #:nodoc:
|
def _header_for_string(content_type) #:nodoc:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user