diff --git a/lib/cgi/core.rb b/lib/cgi/core.rb index d045adb..b5c3a1e 100644 --- a/lib/cgi/core.rb +++ b/lib/cgi/core.rb @@ -134,7 +134,7 @@ def stdoutput # Content-Type: text/html # # With string argument +content_type+ given, - # includes header +Content-Type+ with its default value 'text/html': + # includes header +Content-Type+ with the given value: # # puts cgi.http_header('text/xml') # Content-Type: text/xml @@ -214,7 +214,7 @@ def stdoutput # Content-Language: en-US, en-CA # # 'length':: - # Sets header +Content-Length+ the given value, + # Sets header +Content-Length+ to the given value, # which may be an integer or a string: # # puts cgi.http_header('length' => 4096) @@ -228,7 +228,7 @@ def stdoutput # 'nph':: # If +true+: # - # - Adds protocol string and status code as first line, + # - Adds protocol string and status code as first line. # - Adds date as second line. # - Adds headers +Server+ with no value, # and +Connection+ with default value 'close'; @@ -953,16 +953,16 @@ def self.accept_charset # see {Encodings}[https://docs.ruby-lang.org/en/master/language/encodings_rdoc.html]: # # # The initial value. - # CGI.accept_charset # => "UTF-8" + # CGI.accept_charset # => # # CGI.new # # => # #, # @accept_charset_error_block=nil, # @cookies={}, # @max_multipart_length=134217728, # @multipart=false, - # @options={accept_charset: "UTF-8", max_multipart_length: 134217728}, + # @options={accept_charset: #, max_multipart_length: 134217728}, # @output_cookies=nil, # @output_hidden=nil, # @params={}> @@ -1045,12 +1045,12 @@ def self.accept_charset=(accept_charset) # cgi # # => # #, # @accept_charset_error_block=nil, # @cookies={}, # @max_multipart_length=134217728, # @multipart=false, - # @options={accept_charset: "UTF-8", max_multipart_length: 134217728}, + # @options={accept_charset: #, max_multipart_length: 134217728}, # @output_cookies=nil, # @output_hidden=nil, # @params={}>