Permalink
Browse files

fix "mongolab https gateway" issue

Change-Id: I23fad9be0837140077465f07808f12b2d9650505
  • Loading branch information...
felixhoo
felixhoo committed May 24, 2012
1 parent 16c06d7 commit 2715dbdaeca8366640730495b50af2680e8177bc
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/services/api/clients/service_gateway_client.rb
@@ -146,7 +146,7 @@ def perform_request(http_method, path, msg=VCAP::Services::Api::EMPTY_REQUEST)
result = nil
uri = URI.parse(@url)
if EM.reactor_running?
- url = uri.merge!(path)
+ url = URI.parse(uri.to_s + path)
http = AsyncHttpRequest.fibered(url, @token, http_method, @timeout, msg)
raise UnexpectedResponse, "Error sending request #{msg.extract.to_json} to gateway #{@url}: #{http.error}" unless http.error.empty?
code = http.response_header.status.to_i

0 comments on commit 2715dbd

Please sign in to comment.