зеркало из https://github.com/github/ruby.git
* lib/open-uri.rb (meta_add_field): : Re-implemented.
[ruby-core:58017] [Bug #9051] patch by Eamonn Webster. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43430 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
b848aad5bf
Коммит
11efba7e56
|
@ -1,3 +1,8 @@
|
||||||
|
Sat Oct 26 17:48:54 2013 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* lib/open-uri.rb (meta_add_field): : Re-implemented.
|
||||||
|
[ruby-core:58017] [Bug #9051] patch by Eamonn Webster.
|
||||||
|
|
||||||
Sat Oct 26 14:35:09 2013 Koichi Sasada <ko1@atdot.net>
|
Sat Oct 26 14:35:09 2013 Koichi Sasada <ko1@atdot.net>
|
||||||
|
|
||||||
* gc.c (gc_profile_dump_on): use "Page" terminology.
|
* gc.c (gc_profile_dump_on): use "Page" terminology.
|
||||||
|
|
|
@ -462,6 +462,10 @@ module OpenURI
|
||||||
meta_setup_encoding if name == 'content-type'
|
meta_setup_encoding if name == 'content-type'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def meta_add_field(name, value) # :nodoc:
|
||||||
|
meta_add_field2(name, [value])
|
||||||
|
end
|
||||||
|
|
||||||
# returns a Time that represents the Last-Modified field.
|
# returns a Time that represents the Last-Modified field.
|
||||||
def last_modified
|
def last_modified
|
||||||
if vs = @metas['last-modified']
|
if vs = @metas['last-modified']
|
||||||
|
|
Загрузка…
Ссылка в новой задаче