Skip to content

Commit

Permalink
Fix image file
Browse files Browse the repository at this point in the history
  • Loading branch information
Vagrant WpjWeb committed Jan 19, 2018
1 parent 0d01d2e commit 4114676
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion xhtml2pdf/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ def __init__(self, uri, basepath=None):
#mimetype = getMimeType(path)

# Using HTTPLIB
server, path = urllib.splithost(uri[uri.find("//"):])
server, path = urllib.parse.splithost(uri[uri.find("//"):])
if uri.startswith("https://"):
conn = httplib.HTTPSConnection(server)
else:
Expand Down

0 comments on commit 4114676

Please sign in to comment.