Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions lib/cgi/core.rb
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def stdoutput
# Content-Type: text/html
#
# With string argument +content_type+ given,
# includes header +Content-Type+ with its default value <tt>'text/html'</tt>:
# includes header +Content-Type+ with the given value:
#
# puts cgi.http_header('text/xml')
# Content-Type: text/xml
Expand Down Expand Up @@ -214,7 +214,7 @@ def stdoutput
# Content-Language: en-US, en-CA
#
# <tt>'length'</tt>::
# 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)
Expand All @@ -228,7 +228,7 @@ def stdoutput
# <tt>'nph'</tt>::
# 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 <tt>'close'</tt>;
Expand Down Expand Up @@ -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 # => #<Encoding:UTF-8>
# CGI.new
# # =>
# #<CGI:0x0000018991db6ae8
# @accept_charset="UTF-8",
# @accept_charset=#<Encoding:UTF-8>,
# @accept_charset_error_block=nil,
# @cookies={},
# @max_multipart_length=134217728,
# @multipart=false,
# @options={accept_charset: "UTF-8", max_multipart_length: 134217728},
# @options={accept_charset: #<Encoding:UTF-8>, max_multipart_length: 134217728},
# @output_cookies=nil,
# @output_hidden=nil,
# @params={}>
Expand Down Expand Up @@ -1045,12 +1045,12 @@ def self.accept_charset=(accept_charset)
# cgi
# # =>
# #<CGI:0x00000189917aff00
# @accept_charset="UTF-8",
# @accept_charset=#<Encoding:UTF-8>,
# @accept_charset_error_block=nil,
# @cookies={},
# @max_multipart_length=134217728,
# @multipart=false,
# @options={accept_charset: "UTF-8", max_multipart_length: 134217728},
# @options={accept_charset: #<Encoding:UTF-8>, max_multipart_length: 134217728},
# @output_cookies=nil,
# @output_hidden=nil,
# @params={}>
Expand Down
Loading