From 949f84d3290938612896e9aca624aae9c161734e Mon Sep 17 00:00:00 2001 From: Chris Mayo Date: Mon, 21 Oct 2019 20:12:33 +0100 Subject: [PATCH] PdfParser requires bytes --- linkcheck/plugins/parsepdf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/linkcheck/plugins/parsepdf.py b/linkcheck/plugins/parsepdf.py index fa69fae6..d9f9fe88 100755 --- a/linkcheck/plugins/parsepdf.py +++ b/linkcheck/plugins/parsepdf.py @@ -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: