summaryrefslogtreecommitdiff
path: root/lib/cgi/core.rb
diff options
context:
space:
mode:
authorzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-22 17:42:06 +0000
committerzzak <zzak@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-11-22 17:42:06 +0000
commited7d776317e35976daf9537d2609ca1c65366525 (patch)
tree317d874d43efeb922c467e41e9a6221630a85dc6 /lib/cgi/core.rb
parent7bfb6b2bc763d85f571aa18e162116917453ab11 (diff)
* 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
Diffstat (limited to 'lib/cgi/core.rb')
-rw-r--r--lib/cgi/core.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/cgi/core.rb b/lib/cgi/core.rb
index 7044ffa6a0..27137a2032 100644
--- a/lib/cgi/core.rb
+++ b/lib/cgi/core.rb
@@ -171,6 +171,13 @@ class CGI
return buf
end
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
def _header_for_string(content_type) #:nodoc: