Skip to content

Commit 9ad5696

Browse files
authored
Merge pull request #18 from Shopify/fix-regexp-modifier
2 parents e57d4f3 + 6c15342 commit 9ad5696

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net/http/generic_request.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def update_uri(addr, port, ssl) # :nodoc: internal use only
143143
end
144144

145145
if host = self['host']
146-
host.sub!(/:.*/s, ''.freeze)
146+
host.sub!(/:.*/m, ''.freeze)
147147
elsif host = @uri.host
148148
else
149149
host = addr

0 commit comments

Comments
 (0)