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

Commit

Permalink
Strip SSL from text and image URLs. For #108
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Nov 22, 2015
1 parent 85dc7b4 commit e533717
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions documentcloud/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -800,6 +800,7 @@ def get_entities(self):

def _get_url(self, url):
if self.access == 'public':
url = url.replace("https://", "http://")
req = urllib.request.Request(url)
try:
return urllib.request.urlopen(req).read()
Expand Down

0 comments on commit e533717

Please sign in to comment.