Skip to content

Commit 07988d7

Browse files
robertdecairedilyand
authored andcommitted
(Scala) Allow 'android-app' URL scheme (closes #90)
1 parent 2670b33 commit 07988d7

File tree

1 file changed

+3
-1
lines changed
  • src/main/scala/com/snowplowanalytics/refererparser

1 file changed

+3
-1
lines changed

src/main/scala/com/snowplowanalytics/refererparser/Parser.scala

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ class Parser private[refererparser] (referers: Map[String, RefererLookup]) {
9393
val path = refererUri.getPath
9494
val query = Option(refererUri.getRawQuery)
9595

96-
val validUri = (scheme == "http" || scheme == "https") && host != null && path != null
96+
val validSchemes = Seq("http", "https", "android-app")
97+
98+
val validUri = validSchemes.contains(scheme) && host != null && path != null
9799

98100
if (validUri) {
99101
if (// Check for internal domains

0 commit comments

Comments
 (0)