Skip to content

Commit

Permalink
disable https enforcement in debug mode
Browse files Browse the repository at this point in the history
This allows us to connect to the dev environment without https.

Related to sensational/popscan-ios#1358
  • Loading branch information
balland committed Feb 12, 2019
1 parent ea7121d commit 4ee6294
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 4ee6294

Please sign in to comment.