Open Hflydragon opened 2 years ago
here config.protocolClasses something errors use? why not use protocolClasses_Swizzled
`@objc private class var default_swizzled: URLSessionConfiguration { get { let config = URLSessionConfiguration.default_swizzled
// Let's go ahead and add in NFXProtocol, since it's safe to do so.
config.protocolClasses?.insert(NFXProtocol.self, at: 0)
return config
}
}
@objc private class var ephemeral_swizzled: URLSessionConfiguration {
get {
let config = URLSessionConfiguration.ephemeral_swizzled
// Let's go ahead and add in NFXProtocol, since it's safe to do so.
config.protocolClasses?.insert(NFXProtocol.self, at: 0)
return config
}
}`
Describe the bug when i used custom Session, set protocolClasses, it doesn't work.