Skip to content

Commit

Permalink
Release 1.10.1
Browse files Browse the repository at this point in the history
Support PUT requests in the API helper method
  • Loading branch information
achillean committed Sep 4, 2018
1 parent f8f53aa commit 6ad6a51
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
CHANGELOG
=========

1.10.1
------
* Support PUT requests in the API request helper method

1.10.0
------
* New command **shodan org**: manage enterprise access to Shodan for your team
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setup(
name = 'shodan',
version = '1.10.0',
version = '1.10.1',
description = 'Python library and command-line utility for Shodan (https://developer.shodan.io)',
long_description = README,
long_description_content_type = 'text/x-rst',
Expand Down
2 changes: 2 additions & 0 deletions shodan/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ def api_request(key, function, params=None, data=None, base_url='https://api.sho
proxies=proxies)
elif method.lower() == 'delete':
data = requests.delete(base_url + function, params=params, proxies=proxies)
elif method.lower() == 'put':
data = requests.put(base_url + function, params=params, proxies=proxies)
else:
data = requests.get(base_url + function, params=params, proxies=proxies)

Expand Down

0 comments on commit 6ad6a51

Please sign in to comment.