Skip to content

Commit

Permalink
Merge pull request #108 from gisce/get_cofs_with_httpsconn
Browse files Browse the repository at this point in the history
Obtain profile coefficients using HTTPS
  • Loading branch information
ecarreras committed Oct 8, 2018
2 parents 9edc8cb + 5e47f16 commit 1476a89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion enerdata/profiles/profile.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def get(cls, year, month):
logger.debug('Using CACHE for REEProfile {0}'.format(key))
return cls._CACHE[key]
perff_file = 'PERFF_%(key)s.gz' % locals()
conn = httplib.HTTPConnection(cls.HOST)
conn = httplib.HTTPSConnection(cls.HOST)
conn.request('GET', '%s/%s' % (cls.PATH, perff_file))
logger.debug('Downloading REEProfile from {0}/{1}'.format(
cls.PATH, perff_file
Expand Down

0 comments on commit 1476a89

Please sign in to comment.