Skip to content

Commit 4ee6294

Browse files
committed
disable https enforcement in debug mode
This allows us to connect to the dev environment without https. Related to sensational/popscan-ios#1358
1 parent ea7121d commit 4ee6294

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Base/OAuth2AuthRequest.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ open class OAuth2AuthRequest {
145145
*/
146146
func asURLComponents() throws -> URLComponents {
147147
let comp = URLComponents(url: url, resolvingAgainstBaseURL: false)
148-
guard var components = comp, "https" == components.scheme else {
148+
guard var components = comp, _isDebugAssertConfiguration() || "https" == components.scheme else {
149149
throw OAuth2Error.notUsingTLS
150150
}
151151
if .GET == method && params.count > 0 {

0 commit comments

Comments
 (0)