[#60404] is RB_GC_GUARD needed in rb_io_syswrite? — Eric Wong <normalperson@...>
I haven't gotten it to crash as-is, but it seems like we need to
4 messages
2014/02/01
[#60682] volatile usages — Eric Wong <normalperson@...>
Hi all, I went ahead and removed some use of volatile which were once
5 messages
2014/02/13
[#60794] [RFC] rearrange+pack vtm and time_object structs — Eric Wong <normalperson@...>
Extracted from addendum on top of Feature #9362 (cache-aligned objects).
4 messages
2014/02/16
[#61139] [ruby-trunk - Feature #9577] [Open] [PATCH] benchmark/driver.rb: align columns in text output — normalperson@...
Issue #9577 has been reported by Eric Wong.
3 messages
2014/02/28
[ruby-core:61035] [ruby-trunk - Bug #9467] Net::HTTP does unzip zipped content
From:
matju@...
Date:
2014-02-23 18:58:40 UTC
List:
ruby-core #61035
Issue #9467 has been updated by Mathieu L. Bouchard.
Got the same thing and also this error when the block ends :
/usr/lib/ruby/1.9.1/net/http.rb:1032:in `initialize': can't convert Net::ReadAdapter into String (TypeError)
from /usr/lib/ruby/1.9.1/net/http.rb:1032:in `new'
from /usr/lib/ruby/1.9.1/net/http.rb:1032:in `block in get'
from /usr/lib/ruby/1.9.1/net/http.rb:1322:in `block (2 levels) in transport_request'
from /usr/lib/ruby/1.9.1/net/http.rb:2671:in `reading_body'
from /usr/lib/ruby/1.9.1/net/http.rb:1321:in `block in transport_request'
from /usr/lib/ruby/1.9.1/net/http.rb:1316:in `catch'
from /usr/lib/ruby/1.9.1/net/http.rb:1316:in `transport_request'
from /usr/lib/ruby/1.9.1/net/http.rb:1293:in `request'
from /usr/lib/ruby/1.9.1/net/http.rb:1286:in `block in request'
from /usr/lib/ruby/1.9.1/net/http.rb:745:in `start'
from /usr/lib/ruby/1.9.1/net/http.rb:1284:in `request'
from /usr/lib/ruby/1.9.1/net/http.rb:1026:in `get'
from t辿l辿phones_LEP.rb:11:in `block in <main>'
This is when ruby 1.9.3p194 (2012-04-20 revision 35410) [i686-linux].
It worked on ruby 1.8.7 (2012-02-08 patchlevel 358) [i686-linux]
----------------------------------------
Bug #9467: Net::HTTP does unzip zipped content
https://bugs.ruby-lang.org/issues/9467#change-45440
* Author: Amitav Mohanty
* Status: Feedback
* Priority: Normal
* Assignee: Amitav Mohanty
* Category: lib
* Target version:
* ruby -v: ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux]
* Backport:
----------------------------------------
According to the Compression section of the documentation of Net::HTTP, it should automatically uncompress compressed responses. However, when I tried with a number of JSON requests with different servers, I am not getting automatic decompression.
require 'net/http'
uri = URI("http://yourhost.com")
http = Net::HTTP.new(uri.host, uri.port)
res = http.get(uri.request_uri)
You can test hitting http://vimeo.com/api/oembed.json?url=http://vimeo.com/69655841&width=150
--
http://bugs.ruby-lang.org/