Skip to content
This repository was archived by the owner on Jan 7, 2021. It is now read-only.

Commit e533717

Browse files
committed
Strip SSL from text and image URLs. For #108
1 parent 85dc7b4 commit e533717

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

documentcloud/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -800,6 +800,7 @@ def get_entities(self):
800800

801801
def _get_url(self, url):
802802
if self.access == 'public':
803+
url = url.replace("https://", "http://")
803804
req = urllib.request.Request(url)
804805
try:
805806
return urllib.request.urlopen(req).read()

0 commit comments

Comments
 (0)