Skip to content

Commit 26b5058

Browse files
turinobenjben
authored andcommitted
Ruby: allow 'android-app' url scheme (closes #178)
1 parent 4933326 commit 26b5058

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruby/lib/referer-parser/parser.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ def optimize_index!
8686
def parse(obj)
8787
url = obj.is_a?(URI) ? obj : URI.parse(obj.to_s)
8888

89-
if !['http', 'https'].include?(url.scheme)
90-
raise InvalidUriError.new("Only HTTP and HTTPS schemes are supported -- #{url.scheme}")
89+
if !['android-app', 'http', 'https'].include?(url.scheme)
90+
raise InvalidUriError.new("Only Android-App, HTTP, and HTTPS schemes are supported -- #{url.scheme}")
9191
end
9292

9393
data = { :known => false, :uri => url.to_s }

0 commit comments

Comments
 (0)