Skip to content

Commit 3ef2409

Browse files
hsbtclaude
andcommitted
[DOC] Fix wording in CGI#http_header
The +content_type+ paragraph said "its default value" while its example shows the given value being used, and the 'length' key was missing "to". Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 3ca9d12 commit 3ef2409

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/cgi/core.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def stdoutput
134134
# Content-Type: text/html
135135
#
136136
# With string argument +content_type+ given,
137-
# includes header +Content-Type+ with its default value <tt>'text/html'</tt>:
137+
# includes header +Content-Type+ with the given value:
138138
#
139139
# puts cgi.http_header('text/xml')
140140
# Content-Type: text/xml
@@ -214,7 +214,7 @@ def stdoutput
214214
# Content-Language: en-US, en-CA
215215
#
216216
# <tt>'length'</tt>::
217-
# Sets header +Content-Length+ the given value,
217+
# Sets header +Content-Length+ to the given value,
218218
# which may be an integer or a string:
219219
#
220220
# puts cgi.http_header('length' => 4096)
@@ -228,7 +228,7 @@ def stdoutput
228228
# <tt>'nph'</tt>::
229229
# If +true+:
230230
#
231-
# - Adds protocol string and status code as first line,
231+
# - Adds protocol string and status code as first line.
232232
# - Adds date as second line.
233233
# - Adds headers +Server+ with no value,
234234
# and +Connection+ with default value <tt>'close'</tt>;

0 commit comments

Comments
 (0)