From 3b2c2522142b93f54a1ed7ff8928bd4e9fdb9cf8 Mon Sep 17 00:00:00 2001 From: panpap Date: Fri, 9 Dec 2016 17:08:59 +0100 Subject: [PATCH] = --- filters.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/filters.rb b/filters.rb index a83e625..3ea3c82 100644 --- a/filters.rb +++ b/filters.rb @@ -99,7 +99,7 @@ def getTypeOfContent(url,httpContent) if httpContent!=nil and httpContent!="" #Fallback to HTTP content field type=httpContent.split(";").first - type=type.split(":").first.gsub(" ","").downcase if httpContent.include? ";" + type=type.split(":").first.gsub(" ","").downcase if type.split(":").first != nil return @lists.types[type] if @lists.types[type]!=nil end return -1