This repository was archived by the owner on Apr 7, 2022. It is now read-only.
HTTP 3.1.7
Fixed:
HTTPScheme.https
now enables certificate verification by default. (#328)
Note: This may cause HTTPClient
to fail with NIOOpenSSLError.unableToValidateCertificate
if the remote you are connecting to does not have a verifiable certificate. To work around this, use the new HTTPScheme.customHTTPS(_:)
method.
let res = try HTTPClient.connect(
scheme: .customHTTPS(.forClient(certificateVerification: .none)),
hostname: "127.0.0.1"
).send(req).wait()
HTTPScheme.https
now configures SNI. (#314)