Skip to content

Commit

Permalink
Try constructing the url a different way to avoid bad URI error
Browse files Browse the repository at this point in the history
  • Loading branch information
jgreben committed Oct 24, 2016
1 parent 231b68e commit c6c02d8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/controllers/concerns/symphony_cgi.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ def request_conn(script, cgi_params)
symphony.adapter Faraday.default_adapter # make requests with Net::HTTP
end

conn.get "#{script}", cgi_params
conn.get do |req|
req.url "/#{script}"
req.params cgi_params
end

rescue Faraday::SSLError, Faraday::Error::ConnectionFailed
NullResponse.new
Expand Down

0 comments on commit c6c02d8

Please sign in to comment.