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

Commit

Permalink
Remove https hack
Browse files Browse the repository at this point in the history
  • Loading branch information
adborden committed Dec 5, 2019
1 parent 2f23eaa commit 0d3c347
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions datapusher/jobs.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ def push_to_datastore(task_id, input, dry_run=False):

data = input['metadata']

ckan_url = data['ckan_url'].replace('https://', 'http://') # bsp works through port 80 on local
ckan_url = data['ckan_url']
resource_id = data['resource_id']
api_key = input.get('api_key')

Expand All @@ -323,7 +323,7 @@ def push_to_datastore(task_id, input, dry_run=False):
# fetch the resource data
logger.info('Fetching from: {0}'.format(resource.get('url')))
try:
request = urllib2.Request(resource.get('url').replace('https://inventory', 'http://inventory'))
request = urllib2.Request(resource.get('url'))

if resource.get('url_type') == 'upload':
# If this is an uploaded file to CKAN, authenticate the request,
Expand Down

0 comments on commit 0d3c347

Please sign in to comment.