Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ruby/net-http] Switch invalid server name format
invalid_servername is not a valid name in an SSL request due to the use of the underscore, and LibreSSL 3.2.0 will raise an exception for this. These tests are not testing the allowed characters in the server name, but how net/http handles cases where the server name provided does not match the IP address you are trying to connect to, so I think it's better to just modify the tests to use a correct format. While here, fix a typo in a test name, and use better code in the ensure block so the same test doesn't issue both a failure and an error. ruby/net-http@0e8dc91120
- Loading branch information