diff options
author | xibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-20 03:39:34 +0000 |
---|---|---|
committer | xibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-04-20 03:39:34 +0000 |
commit | 2b222b9b1773d8ae574c4d39b312b83615ecb700 (patch) | |
tree | d3bf44e69a5db4add67a6783e080a0ce7a363a31 /lib/cgi/util.rb | |
parent | e63df5319855c1b4ebba0498a466c3806dedba99 (diff) | |
download | ruby-2b222b9b1773d8ae574c4d39b312b83615ecb700.tar.gz |
* lib/cgi/{core, util}.rb (RFC822_DAYS, RFC822_MONTHS):
move the constant because used only util.rb. [Bug #2704]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/cgi/util.rb')
-rw-r--r-- | lib/cgi/util.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/cgi/util.rb b/lib/cgi/util.rb index 42f1336e9f..7be3e92577 100644 --- a/lib/cgi/util.rb +++ b/lib/cgi/util.rb @@ -141,6 +141,12 @@ class CGI unescapeElement(str) end + # Abbreviated day-of-week names specified by RFC 822 + RFC822_DAYS = %w[ Sun Mon Tue Wed Thu Fri Sat ] + + # Abbreviated month names specified by RFC 822 + RFC822_MONTHS = %w[ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec ] + # Format a +Time+ object as a String using the format specified by RFC 1123. # # CGI::rfc1123_date(Time.now) |