PdfParser requires bytes

This commit is contained in:
Chris Mayo 2019-10-21 20:12:33 +01:00
parent a31289c97d
commit 949f84d329

View file

@ -78,7 +78,7 @@ class PdfParser(_ParserPlugin):
"""Parse PDF data."""
# XXX user authentication from url_data
password = ''
data = url_data.get_content()
data = url_data.get_raw_content()
# PDFParser needs a seekable file object
fp = StringIO(data)
try: