diff options
| -rw-r--r-- | test/open-uri/test_ssl.rb | 3 | ||||
| -rw-r--r-- | test/open-uri/utils.rb | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/test/open-uri/test_ssl.rb b/test/open-uri/test_ssl.rb index 019186fe82..cc0a7517ef 100644 --- a/test/open-uri/test_ssl.rb +++ b/test/open-uri/test_ssl.rb @@ -9,9 +9,6 @@ rescue LoadError end class TestOpenURISSL < Test::Unit::TestCase -end - -class TestOpenURISSL include TestOpenURIUtils def setup diff --git a/test/open-uri/utils.rb b/test/open-uri/utils.rb index 88b0797904..464de5e334 100644 --- a/test/open-uri/utils.rb +++ b/test/open-uri/utils.rb @@ -50,7 +50,7 @@ class SimpleHTTPServer @log << "ERROR `#{path}' not found" client.print "HTTP/1.1 404 Not Found\r\nContent-Length: 0\r\n\r\n" end - rescue ::TestOpenURI::Unauthorized => e + rescue ::TestOpenURI::Unauthorized @log << "ERROR Unauthorized" client.print "HTTP/1.1 401 Unauthorized\r\nContent-Length: 0\r\n\r\n" end @@ -286,7 +286,7 @@ class SimpleHTTPSServer request_line = socket.gets return if request_line.nil? || request_line.strip.empty? - method, path, version = request_line.split + _, path, _ = request_line.split headers = {} while (line = socket.gets) break if line.strip.empty? |
