#415 Use a cross-platform friendly HttpClient for CoreCLR.
This commit is contained in:
parent
6915db67f2
commit
4b1f710c39
|
|
@ -99,7 +99,7 @@ namespace Microsoft.AspNet.Authentication.JwtBearer
|
|||
webRequestHandler.ServerCertificateValidationCallback = options.BackchannelCertificateValidator.Validate;
|
||||
}
|
||||
#else
|
||||
new WinHttpHandler();
|
||||
new HttpClientHandler();
|
||||
#endif
|
||||
return handler;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
},
|
||||
"dnxcore50": {
|
||||
"dependencies": {
|
||||
"System.Net.Http.WinHttpHandler": "4.0.0-beta-*"
|
||||
"System.Net.Http": "4.0.1-beta-*"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,11 +11,6 @@
|
|||
},
|
||||
"frameworks": {
|
||||
"dnx451": { },
|
||||
"dnxcore50": {
|
||||
"dependencies": {
|
||||
"System.Dynamic.Runtime": "4.0.11-beta-*",
|
||||
"System.ObjectModel": "4.0.11-beta-*"
|
||||
}
|
||||
}
|
||||
"dnxcore50": { }
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -115,7 +115,7 @@ namespace Microsoft.AspNet.Authentication.OAuth
|
|||
webRequestHandler.ServerCertificateValidationCallback = options.BackchannelCertificateValidator.Validate;
|
||||
}
|
||||
#else
|
||||
new WinHttpHandler();
|
||||
new HttpClientHandler();
|
||||
#endif
|
||||
return handler;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
},
|
||||
"dnxcore50": {
|
||||
"dependencies": {
|
||||
"System.Net.Http.WinHttpHandler": "4.0.0-beta-*"
|
||||
"System.Net.Http": "4.0.1-beta-*"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -167,7 +167,7 @@ namespace Microsoft.AspNet.Authentication.OpenIdConnect
|
|||
webRequestHandler.ServerCertificateValidationCallback = options.BackchannelCertificateValidator.Validate;
|
||||
}
|
||||
#else
|
||||
new WinHttpHandler();
|
||||
new HttpClientHandler();
|
||||
#endif
|
||||
return handler;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@
|
|||
"dnxcore50": {
|
||||
"dependencies": {
|
||||
"System.Collections.Specialized": "4.0.1-beta-*",
|
||||
"System.Net.Http.WinHttpHandler": "4.0.0-beta-*"
|
||||
"System.Net.Http": "4.0.1-beta-*"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -109,7 +109,7 @@ namespace Microsoft.AspNet.Authentication.Twitter
|
|||
webRequestHandler.ServerCertificateValidationCallback = options.BackchannelCertificateValidator.Validate;
|
||||
}
|
||||
#else
|
||||
new WinHttpHandler();
|
||||
new HttpClientHandler();
|
||||
#endif
|
||||
return handler;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@
|
|||
},
|
||||
"dnxcore50": {
|
||||
"dependencies": {
|
||||
"System.Net.Http.WinHttpHandler": "4.0.0-beta-*"
|
||||
"System.Net.Http": "4.0.1-beta-*"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue