Skip to content

Commit

Permalink
disable https enforcement in debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
balland committed Feb 12, 2019
1 parent ea7121d commit d2c466e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Base/OAuth2AuthRequest.swift
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ open class OAuth2AuthRequest {
*/
func asURLComponents() throws -> URLComponents {
let comp = URLComponents(url: url, resolvingAgainstBaseURL: false)
guard var components = comp, "https" == components.scheme else {
guard var components = comp, _isDebugAssertConfiguration() || "https" == components.scheme else {
throw OAuth2Error.notUsingTLS
}
if .GET == method && params.count > 0 {
Expand Down

0 comments on commit d2c466e

Please sign in to comment.