Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fix "mongolab https gateway" issue

Change-Id: I23fad9be0837140077465f07808f12b2d9650505
  • Loading branch information...
commit 2715dbdaeca8366640730495b50af2680e8177bc 1 parent 16c06d7
@felixhoo felixhoo authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/services/api/clients/service_gateway_client.rb
View
2  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
Please sign in to comment.
Something went wrong with that request. Please try again.