em-http-request
em-http-request copied to clipboard
Asynchronous HTTP Client (EventMachine + Ruby)
Hi, I'm opening a new bug, since the reproducer is different, but I guess it's related to #338. When I use this code ```ruby require 'em-http-request' USER_AGENT = 'Ruby Net::HTTP...
I'm getting this error when passing an URL containing `//?` instead of `/?`. A very simple reproducer is ``` require 'em-http-request' EventMachine.run do value = "http://a.domain.it//?p1=v1&p2=v2" http = EventMachine::HttpRequest.new(value).get end...
Getting a crash scenario from a 301 without a `Location` header. What appears to happen is that `HttpConnection#redirect` gets called with `nil` as a location which creates an empty hostname....
Try different scheme instead of `http` and you still receive same response. 200 http://example.com/ `\n\n\n Example Domain\n\n \n
broken with v1.1.4 HttpConnectionOptions Class http_connection_options:23 # Change in 1.1.4 forces the sni_hostname, EVEN if already provided @tls[:sni_hostname] = uri.host # Simple FIX (to retain the sni_hostname IF already provided...
Zlib provides automatic gzip detection for you so you don't need to skip over it by hand. From `inflateInit2` in the zlib manual (also reflected in the [Zlib::Inflate.new documentation](https://docs.ruby-lang.org/en/2.4.0/Zlib/Inflate.html#method-c-new)): >...
Is Ruby's (potentially) upcoming [Frozen String Literal](https://bugs.ruby-lang.org/issues/11473) compatibility in the roadmap? Runtime option `--enable-frozen-string-literal` has been available since Ruby 2.3 and using this gives me RuntimeErrors with em-http v.1.1.5 so...
Fixes #354 `Regexp::new` with 3 arguments is deprecated and fails on Ruby 3.3. The cookiejar gem repo has been archived, so let's use a new one.
...since this can report the status. [ci skip]