Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed a bug in HTTP Stream where it won't work with a custom socket a…

…cting as an http proxy because it requests relative not full paths (/path versus
  • Loading branch information...
commit 080dd6561b2dba2fc724e7e26d8c504a33ba8fdb 1 parent 1ce3501
@benmcredmond authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/yajl/http_stream.rb
2  lib/yajl/http_stream.rb
@@ -99,7 +99,7 @@ def self.request(method, uri, opts = {}, &block)
socket = opts.has_key?(:socket) ? opts.delete(:socket) :, uri.port)
- request = "#{method} #{uri.path}#{uri.query ? "?"+uri.query : nil} HTTP/1.1\r\n"
+ request = "#{method} #{uri.to_s} HTTP/1.1\r\n"
request << "Host: #{}\r\n"
request << "Authorization: Basic #{[uri.userinfo].pack('m').strip!}\r\n" unless uri.userinfo.nil?
request << "User-Agent: #{user_agent}\r\n"
Please sign in to comment.
Something went wrong with that request. Please try again.