Skip to content

Commit

Permalink
=
Browse files Browse the repository at this point in the history
  • Loading branch information
panpap committed Dec 9, 2016
1 parent 74a189f commit 3b2c252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion filters.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b2c252

Please sign in to comment.