File tree 2 files changed +3
-3
lines changed
Tests/AsyncHTTPClientTests
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ let package = Package(
22
22
] ,
23
23
dependencies: [
24
24
. package ( url: " https://github.com/apple/swift-nio.git " , from: " 2.18.0 " ) ,
25
- . package ( url: " https://github.com/apple/swift-nio-ssl.git " , from: " 2.7 .0 " ) ,
25
+ . package ( url: " https://github.com/apple/swift-nio-ssl.git " , from: " 2.8 .0 " ) ,
26
26
. package ( url: " https://github.com/apple/swift-nio-extras.git " , from: " 1.3.0 " ) ,
27
27
. package ( url: " https://github.com/apple/swift-nio-transport-services.git " , from: " 1.5.1 " ) ,
28
28
. package ( url: " https://github.com/apple/swift-log.git " , from: " 1.0.0 " ) ,
Original file line number Diff line number Diff line change @@ -212,7 +212,7 @@ internal final class HTTPBin {
212
212
let configuration = TLSConfiguration . forServer ( certificateChain: [ . certificate( try ! NIOSSLCertificate ( bytes: Array ( cert. utf8) , format: . pem) ) ] ,
213
213
privateKey: . privateKey( try ! NIOSSLPrivateKey ( bytes: Array ( key. utf8) , format: . pem) ) )
214
214
let context = try ! NIOSSLContext ( configuration: configuration)
215
- return channel. pipeline. addHandler ( try ! NIOSSLServerHandler ( context: context) , position: . first)
215
+ return channel. pipeline. addHandler ( NIOSSLServerHandler ( context: context) , position: . first)
216
216
}
217
217
218
218
init ( ssl: Bool = false ,
@@ -655,7 +655,7 @@ internal class HttpBinForSSLUncleanShutdown {
655
655
let configuration = TLSConfiguration . forServer ( certificateChain: [ . certificate( try ! NIOSSLCertificate ( bytes: Array ( cert. utf8) , format: . pem) ) ] ,
656
656
privateKey: . privateKey( try ! NIOSSLPrivateKey ( bytes: Array ( key. utf8) , format: . pem) ) )
657
657
let context = try ! NIOSSLContext ( configuration: configuration)
658
- return channel. pipeline. addHandler ( try ! NIOSSLServerHandler ( context: context) , name: " NIOSSLServerHandler " , position: . first) . flatMap {
658
+ return channel. pipeline. addHandler ( NIOSSLServerHandler ( context: context) , name: " NIOSSLServerHandler " , position: . first) . flatMap {
659
659
channel. pipeline. addHandler ( HttpBinForSSLUncleanShutdownHandler ( channelPromise: channelPromise) )
660
660
}
661
661
}
You can’t perform that action at this time.
0 commit comments