Skip to content

Commit 53b4a42

Browse files
BurdetteLamarioquatix
authored andcommitted
[DOC] Correct env name
1 parent fbc763a commit 53b4a42

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/cgi/core.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -788,11 +788,11 @@ def self.accept_charset=(accept_charset)
788788
#
789789
# The behavior of this method depends _strongly_ on whether it is called
790790
# within a standard \CGI call environment;
791-
# that is, whether <tt>ENV['REQUEST_HEADER']</tt> is defined.
791+
# that is, whether <tt>ENV['REQUEST_METHOD']</tt> is defined.
792792
#
793793
# <b>Within a Standard Call Environment</b>
794794
#
795-
# This section assumes that <tt>ENV['REQUEST_HEADER']</tt> is defined;
795+
# This section assumes that <tt>ENV['REQUEST_METHOD']</tt> is defined;
796796
# for example:
797797
#
798798
# ENV['REQUEST_METHOD'] # => "GET"
@@ -878,7 +878,7 @@ def self.accept_charset=(accept_charset)
878878
#
879879
# <b>Outside a Standard Call Environment</b>
880880
#
881-
# This section assumes that <tt>ENV['REQUEST_HEADER']</tt> is not defined;
881+
# This section assumes that <tt>ENV['REQUEST_METHOD']</tt> is not defined;
882882
# for example:
883883
#
884884
# ENV['REQUEST_METHOD'] # => nil

0 commit comments

Comments
 (0)