Skip to content

Commit 945a874

Browse files
author
Johnny Tordgeman
authored
Merge pull request #75 from PerimeterX/dev
Version 3.2.1
2 parents 0a4612e + b6a94e7 commit 945a874

File tree

7 files changed

+11
-8
lines changed

7 files changed

+11
-8
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Change Log
22

3+
## [v3.2.1](https://github.com/PerimeterX/perimeterx-python-wsgi) (2019-08-22)
4+
- Upgrade dependency for security issue.
5+
36
## [v3.2.0](https://github.com/PerimeterX/perimeterx-python-wsgi) (2019-03-17)
47
- Added support for enforced_specific_routes
58
- Added .json to the list of whitelisted extensions

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44

55
[PerimeterX](http://www.perimeterx.com) Python Middleware
66
=============================================================
7-
> Latest stable version: [v3.2.0](https://pypi.org/project/perimeterx-python-wsgi/)
7+
> Latest stable version: [v3.2.1](https://pypi.org/project/perimeterx-python-wsgi/)
88
9-
> Latest GAE stable version: [v3.2.0](https://pypi.org/project/perimeterx-python-wsgi-gae/)
9+
> Latest GAE stable version: [v3.2.1](https://pypi.org/project/perimeterx-python-wsgi-gae/)
1010
1111
Table of Contents
1212
-----------------

perimeterx/px_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
EMPTY_GIF_B64 = 'R0lGODlhAQABAPAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='
3131
COLLECTOR_HOST = 'collector.perimeterx.net'
3232
FIRST_PARTY_FORWARDED_FOR = 'X-FORWARDED-FOR'
33-
MODULE_VERSION = 'Python WSGI Module{} v3.2.0'
33+
MODULE_VERSION = 'Python WSGI Module{} v3.2.1'
3434
API_RISK = '/api/v3/risk'
3535
PAGE_REQUESTED_ACTIVITY = 'page_requested'
3636
BLOCK_ACTIVITY = 'block'

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
setuptools==40.6.2
22
requests>=2.18.4,<=2.20.1
3-
Werkzeug==0.14.1
3+
Werkzeug==0.15.5
44
pystache>=0.5.1,<=0.5.4
55
pycryptodome>=3.7.2, <4.0.0

setup-gae.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from setuptools import setup, find_packages
44

5-
version = 'v3.2.0'
5+
version = 'v3.2.1'
66
setup(name='perimeterx-python-wsgi-gae',
77
version=version,
88
license='MIT',

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from setuptools import setup, find_packages
44

5-
version = 'v3.2.0'
5+
version = 'v3.2.1'
66
setup(name='perimeterx-python-wsgi',
77
version=version,
88
license='MIT',
@@ -13,6 +13,6 @@
1313
download_url='https://github.com/PerimeterX/perimeterx-python-wsgi/tarball/' + version,
1414
packages=find_packages(exclude=['dev', 'test*']),
1515
package_data={'perimeterx': ['templates/*']},
16-
install_requires=['pystache>=0.5.1,<=0.5.4', 'requests>=2.18.4,<=2.20.1', 'setuptools==40.6.2', 'Werkzeug==0.14.1', 'pycryptodome>=3.7.2, <4.0.0'],
16+
install_requires=['pystache>=0.5.1,<=0.5.4', 'requests>=2.18.4,<=2.20.1', 'setuptools==40.6.2', 'Werkzeug==0.15.5', 'pycryptodome>=3.7.2, <4.0.0'],
1717
classifiers=['Intended Audience :: Developers',
1818
'Programming Language :: Python :: 2.7'])

test/test_px_testing_mode_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ def test_testing_mode_handling(self):
2525
request = Request(env)
2626
context = PxContext(request, config)
2727
data, headers, status = px_testing_mode_handler.testing_mode_handling(context, config, {})
28-
response_json = '{"vid": "", "ip": "127.0.0.1", "decoded_px_cookie": "", "is_made_s2s_api_call": false, "http_method": "GET", "px_cookie_hmac": "", "uuid": "", "http_version": "1.1", "hostname": "localhost", "risk_rtt": 0, "score": -1, "pxde": {}, "module_mode": 0, "pxde_verified": false, "cookie_origin": "cookie", "s2s_call_reason": "none", "sensitive_route": false, "px_cookies": {"_px3": "bd078865fa9627f626d6f7d6828ab595028d2c0974065ab6f6c5a9f80c4593cd:OCIluokZHHvqrWyu8zrWSH8Vu7AefCjrd4CMx/NXsX58LzeV40EZIlPG4gsNMoAYzH88s/GoZwv+DpQa76C21A==:1000:zwT+Rht/YGDNWKkzHtJAB7IiI00u4fOePL/3xWMs1nZ93lzW1XvAMGR2hLlHBmOv8O0CpylEQOZZTK1uQMls6O28Y8aQnTo5DETLkrbhpwCVeNjOcf8GVKTckITwuHfXbEcfHbdtb68s1+jHv1+vt/w/6HZqTzanaIsvFVp8vmA="}, "uri": "/", "full_url": "http://localhost/", "headers": {"Remote-Addr": "127.0.0.1", "Host": "localhost", "X-Forwarded-For": "127.0.0.1", "Content-Length": "0"}, "block_action": "", "user_agent": "", "block_reason": ""}'
28+
response_json = '{"vid": "", "ip": "127.0.0.1", "decoded_px_cookie": "", "is_made_s2s_api_call": false, "http_method": "GET", "px_cookie_hmac": "", "uuid": "", "http_version": "1.1", "hostname": "localhost", "risk_rtt": 0, "score": -1, "pxde": {}, "module_mode": 0, "pxde_verified": false, "cookie_origin": "cookie", "s2s_call_reason": "none", "sensitive_route": false, "px_cookies": {"_px3": "bd078865fa9627f626d6f7d6828ab595028d2c0974065ab6f6c5a9f80c4593cd:OCIluokZHHvqrWyu8zrWSH8Vu7AefCjrd4CMx/NXsX58LzeV40EZIlPG4gsNMoAYzH88s/GoZwv+DpQa76C21A==:1000:zwT+Rht/YGDNWKkzHtJAB7IiI00u4fOePL/3xWMs1nZ93lzW1XvAMGR2hLlHBmOv8O0CpylEQOZZTK1uQMls6O28Y8aQnTo5DETLkrbhpwCVeNjOcf8GVKTckITwuHfXbEcfHbdtb68s1+jHv1+vt/w/6HZqTzanaIsvFVp8vmA="}, "uri": "/", "full_url": "http://localhost/", "headers": {"Remote-Addr": "127.0.0.1", "Host": "localhost", "X-Forwarded-For": "127.0.0.1"}, "block_action": "", "user_agent": "", "block_reason": ""}'
2929
self.assertEqual(data, response_json)
3030

0 commit comments

Comments
 (0)