summaryrefslogtreecommitdiff
path: root/spec/ruby/library/net/http/http
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2021-07-29 22:11:21 +0200
committerBenoit Daloze <eregontp@gmail.com>2021-07-29 22:11:21 +0200
commit6998d758248d778fa95b008c78d05473e48b8428 (patch)
tree8abc6926f647ea5f374a5b34c3a4820c5861e32e /spec/ruby/library/net/http/http
parent15d05f8120745a121b93fab9fd2addf5f094e8d2 (diff)
Update to ruby/spec@b65d01f
Diffstat (limited to 'spec/ruby/library/net/http/http')
-rw-r--r--spec/ruby/library/net/http/http/fixtures/http_server.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/ruby/library/net/http/http/fixtures/http_server.rb b/spec/ruby/library/net/http/http/fixtures/http_server.rb
index a84e0d47d0..c06012cc86 100644
--- a/spec/ruby/library/net/http/http/fixtures/http_server.rb
+++ b/spec/ruby/library/net/http/http/fixtures/http_server.rb
@@ -63,8 +63,9 @@ module NetHTTPSpecs
end
def start_server
+ bind_address = platform_is(:windows) ? "localhost" : "127.0.0.1"
server_config = {
- BindAddress: "localhost",
+ BindAddress: bind_address,
Port: 0,
Logger: WEBrick::Log.new(NullWriter.new),
AccessLog: [],