Skip to content

Commit

Permalink
Merge pull request #18 from Shopify/fix-regexp-modifier
Browse files Browse the repository at this point in the history
  • Loading branch information
nurse committed Mar 19, 2021
2 parents e57d4f3 + 6c15342 commit 9ad5696
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/net/http/generic_request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ def update_uri(addr, port, ssl) # :nodoc: internal use only
end

if host = self['host']
host.sub!(/:.*/s, ''.freeze)
host.sub!(/:.*/m, ''.freeze)
elsif host = @uri.host
else
host = addr
Expand Down

0 comments on commit 9ad5696

Please sign in to comment.