Skip to content

Commit

Permalink
Merge pull request #28 from nobu/check-by-feture
Browse files Browse the repository at this point in the history
Check the feature by itself, instead of the version number
  • Loading branch information
hsbt authored Nov 30, 2019
2 parents 95b8266 + 79d7922 commit 4d246a5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/webrick/test_filehandler.rb
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def req.meta_vars
TestWEBrick.start_httpserver(config, log_tester) do |server, addr, port, log|
http = Net::HTTP.new(addr, port)
http.read_timeout = EnvUtil.apply_timeout_scale(60)
http.write_timeout = EnvUtil.apply_timeout_scale(60) if Gem::Version.new(RUBY_VERSION) >= Gem::Version.new('2.6.0')
http.write_timeout = EnvUtil.apply_timeout_scale(60) if http.respond_to?(:write_timeout=)

req = Net::HTTP::Get.new("/webrick.cgi/test")
http.request(req) do |res|
Expand Down

0 comments on commit 4d246a5

Please sign in to comment.