Fix viruscheck plugin

The clamav interface needs bytes, not unicode.

It would be nice if we had tests for this code.
This commit is contained in:
Marius Gedminas 2019-10-22 17:44:17 +03:00 committed by Chris Mayo
parent 1e35530f9d
commit bb53aaa621

View file

@ -41,7 +41,7 @@ class VirusCheck(_ContentPlugin):
def check(self, url_data):
"""Try to ask GeoIP database for country info."""
data = url_data.get_content()
data = url_data.get_raw_content()
infected, errors = scan(data, self.clamav_conf)
if infected or errors:
for msg in infected: