We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d933001 + 7045dd0 commit 19917a3Copy full SHA for 19917a3
lib/webmock/util/uri.rb
@@ -68,7 +68,7 @@ def self.encode_unsafe_chars_in_userinfo(userinfo)
68
69
def self.is_uri_localhost?(uri)
70
uri.is_a?(Addressable::URI) &&
71
- %w(localhost 127.0.0.1 0.0.0.0).include?(uri.host)
+ %w(localhost 127.0.0.1 0.0.0.0 [::1]).include?(uri.host)
72
end
73
74
private
0 commit comments