lib/em-http/http_encoding.rb in em-http-request-1.0.0.beta.1 vs lib/em-http/http_encoding.rb in em-http-request-1.0.0.beta.2
- old
+ new
@@ -49,10 +49,10 @@
def encode_request(method, uri, query, proxy)
query = encode_query(uri, query)
# Non CONNECT proxies require that you provide the full request
# uri in request header, as opposed to a relative path.
- query = uri.join(query) if proxy && proxy[:type] != :socks
+ query = uri.join(query) if proxy
HTTP_REQUEST_HEADER % [method.to_s.upcase, query]
end
def encode_query(uri, query)