Skip to content

Commit

Permalink
Update to version 1.5.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Rusty Brooks committed Feb 12, 2020
1 parent 64bee06 commit 953d4f1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion OTXv2.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ def __init__(self, api_key, proxy=None, proxy_https=None, server="https://otx.al
self.request_session = None
self.headers = {
'X-OTX-API-KEY': self.key,
'User-Agent': user_agent or 'OTX Python {}/1.5.6'.format(project),
'User-Agent': user_agent or 'OTX Python {}/1.5.7'.format(project),
'Content-Type': 'application/json'
}

Expand Down
4 changes: 2 additions & 2 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@

setup(
name='OTXv2',
version='1.5.6',
version='1.5.7',
description='AlienVault OTX API',
author='AlienVault Team',
author_email='[email protected]',
url='https://github.com/AlienVault-Labs/OTX-Python-SDK',
download_url='https://github.com/AlienVault-Labs/OTX-Python-SDK/tarball/1.5.6',
download_url='https://github.com/AlienVault-Labs/OTX-Python-SDK/tarball/1.5.7',
py_modules=['OTXv2', 'IndicatorTypes','patch_pulse'],
install_requires=['requests', 'python-dateutil', 'pytz']
)
2 changes: 1 addition & 1 deletion tests/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -881,7 +881,7 @@ def _test_backoff(self):

def test_user_agent(self):
o = OTXv2(self.api_key, server=ALIEN_DEV_SERVER, project='foo')
self.assertEqual(o.headers['User-Agent'], 'OTX Python foo/1.5.6')
self.assertEqual(o.headers['User-Agent'], 'OTX Python foo/1.5.7')

o = OTXv2(self.api_key, server=ALIEN_DEV_SERVER, user_agent='foo')
self.assertEqual(o.headers['User-Agent'], 'foo')
Expand Down

0 comments on commit 953d4f1

Please sign in to comment.