Project

General

Profile

Bug #7405 ยป rdoc_for_cgi_header_alias.patch

stomar (Marcus Stollsteimer), 11/20/2012 12:30 AM

View differences:

lib/cgi/core.rb (Arbeitskopie)
171 171
      return buf
172 172
    end
173 173
  end # http_header()
174

  
175
  # This method is an alias for #http_header, as long as the
176
  # HTML5 tag maker is not used.
177
  #
178
  # NOTE: #header should no longer be used to create HTTP header
179
  # blocks, the alias is provided only for backwards compatibility.
180
  #
181
  # With the HTML5 tag maker #header creates a <header> element.
174 182
  alias :header :http_header
175 183

  
176 184
  def _header_for_string(content_type) #:nodoc: