Skip to content

Commit

Permalink
Remove unnecessary double-encapsulation of service URI
Browse files Browse the repository at this point in the history
  • Loading branch information
jonpearse committed Apr 13, 2023
1 parent 0acf56f commit d5bd992
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions lib/ldbws/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -202,17 +202,15 @@ def create_soap_request(request, root_node)
end

def perform_soap_request(action, body)
uri = URI(SERVICE_URI)

conn = Faraday.new(
url: "#{uri.scheme}://#{uri.host}",
url: "#{SERVICE_URI.scheme}://#{SERVICE_URI.host}",
headers: {
'Content-Type': "text/xml",
'SOAPAction': action,
},
)

conn.post(uri.path, body).body
conn.post(SERVICE_URI.path, body).body
end

def extract_error(xml)
Expand Down

0 comments on commit d5bd992

Please sign in to comment.