Skip to content

Commit

Permalink
feat(webhooks): don't use username if empty string
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed May 26, 2019
1 parent c8a8194 commit 9327271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pact_broker/domain/webhook_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def http_request
@http_request ||= begin
req = Net::HTTP.const_get(method.capitalize).new(url)
headers.each_pair { | name, value | req[name] = value }
req.basic_auth(username, password) if username
req.basic_auth(username, password) if username && username.size > 0
req.body = body unless body.nil?
req
end
Expand Down

0 comments on commit 9327271

Please sign in to comment.