Skip to content

Commit

Permalink
Learning ruby coding style is fun
Browse files Browse the repository at this point in the history
  • Loading branch information
laxa committed Apr 26, 2022
1 parent f763692 commit 3792be3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/winrm/http/transport.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,10 @@ class HttpTransport

def initialize(endpoint, options)
@endpoint = endpoint.is_a?(String) ? URI.parse(endpoint) : endpoint
@httpcli = HTTPClient.new()
@httpcli = HTTPClient.new
@logger = Logging.logger[self]
@httpcli.receive_timeout = options[:receive_timeout]
@httpcli.default_header = {'User-Agent': options[:user_agent]}
@httpcli.default_header = { 'User-Agent': options[:user_agent] }
end

# Sends the SOAP payload to the WinRM service and returns the service's
Expand Down

0 comments on commit 3792be3

Please sign in to comment.