Skip to content

Commit

Permalink
Merge pull request #3 from omidraha/patch-1
Browse files Browse the repository at this point in the history
Use https api address instead of http
  • Loading branch information
bgsrb authored May 4, 2018
2 parents c5755f3 + 5819b08 commit b73074f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kavenegar.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def __str__(self):
return "kavenegar.KavenegarAPI({!s})".format(self.apikey)

def _request(self, action, method, params={}):
url = 'http://' + self.host + '/' + self.version + '/' + self.apikey + '/' + action + '/' + method + '.json'
url = 'https://' + self.host + '/' + self.version + '/' + self.apikey + '/' + action + '/' + method + '.json'
try:
content = requests.post(url , headers=self.headers,auth=None,data=params).content
try:
Expand Down

0 comments on commit b73074f

Please sign in to comment.