Skip to content

Commit

Permalink
Merge pull request webcompat#1737 from MDTsai/Issue_1726
Browse files Browse the repository at this point in the history
Fixes webcompat#1726 - For alexa webhook deployment
  • Loading branch information
Mike Taylor authored Sep 8, 2017
2 parents 0ea702e + c480446 commit 3eb7740
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tools/topsites.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
ATS_ACTION_NAME = 'TopSites'
ATS_RESPONSE_GROUP_NAME = 'Country'
ATS_SERVICE_HOST = 'ats.amazonaws.com'
ATS_AWS_BASE_URL = 'http://' + ATS_SERVICE_HOST + '/?'
ATS_AWS_BASE_URL = 'https://' + ATS_SERVICE_HOST + '/?'
ATS_DATEFORMAT = '%Y-%m-%dT%H:%M:%S.%f'
ATS_HASH_ALGORITHM = 'HmacSHA256'
ATS_COUNT = 100
Expand Down Expand Up @@ -160,8 +160,8 @@ def build_query_string(country_code, start_ranking):
# Alexa top site only accept request with ordered query parameters
# Keep the order!
query_params = [
('Action', ATS_ACTION_NAME),
('AWSAccessKeyId', ats_access_key),
('Action', ATS_ACTION_NAME),
('Count', ATS_COUNT),
('CountryCode', country_code),
('ResponseGroup', ATS_RESPONSE_GROUP_NAME),
Expand Down

0 comments on commit 3eb7740

Please sign in to comment.