Skip to content

Commit

Permalink
fix(ios): lower case test matching host
Browse files Browse the repository at this point in the history
  • Loading branch information
mlynch committed Jun 10, 2019
1 parent 44ec67e commit ded8df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Capacitor/Capacitor/CAPBridgeViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ public class CAPBridgeViewController: UIViewController, CAPBridgeDelegate, WKScr
let navUrl = navigationAction.request.url!
if let allowNavigation = allowNavigationConfig, let requestHost = navUrl.host {
for pattern in allowNavigation {
if matchHost(host: requestHost, pattern: pattern) {
if matchHost(host: requestHost, pattern: pattern.lowercased()) {
decisionHandler(.allow)
return
}
Expand Down

0 comments on commit ded8df8

Please sign in to comment.