NSURLSession dataTaskWithURL convert http url to https forced

when i use AFNetworking to post http reqeust, i found that the dataTask currentRequest‘s http URL replaced by https, but the originRequest's URL is still http.


the originRequest in dataTask is http://xxxxxx

but the currentRequest in dataTask is https://xxxxx


iOS 9 new feature or a bug?


PS: build with iOS 9 beta SDK

I have the same issue. Someone please help ?

It's a new feature, described in here IIRC:


https://developer.apple.com/videos/wwdc/2015/?id=711


It also explains how to turn this off if you absolutely have to.

NSURLSession dataTaskWithURL convert http url to https forced
 
 
Q