Skip to content

Commit 9ddd8b3

Browse files
authored
Merge pull request #46 from PerimeterX/dev
Changed module requirements
2 parents 8d2274f + 324da42 commit 9ddd8b3

File tree

7 files changed

+10
-7
lines changed

7 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Change Log
2+
## [v2.3.1](https://github.com/PerimeterX/perimeterx-python-wsgi) (2019-01-10)
3+
- Changed requirements setting
4+
25
## [v2.3.0](https://github.com/PerimeterX/perimeterx-python-wsgi) (2019-01-09)
36
- Added disabling of the request validation by property
47
- Minor bug fix

README.md

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

55
[PerimeterX](http://www.perimeterx.com) Python Middleware
66
=============================================================
7-
> Latest stable version: [v2.3.0](https://pypi.org/project/perimeterx-python-wsgi/)
7+
> Latest stable version: [v2.3.1](https://pypi.org/project/perimeterx-python-wsgi/)
88
Table of Contents
99
-----------------
1010
- [Installation](#installation)

perimeterx/px_constants.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
EMPTY_GIF_B64 = 'R0lGODlhAQABAPAAAAAAAAAAACH5BAEAAAAALAAAAAABAAEAAAICRAEAOw=='
3030
COLLECTOR_HOST = 'collector.perimeterx.net'
3131
FIRST_PARTY_FORWARDED_FOR = 'X-FORWARDED-FOR'
32-
MODULE_VERSION = 'Python WSGI Module v2.0.0'
32+
MODULE_VERSION = 'Python WSGI Module v2.3.1'
3333
API_RISK = '/api/v3/risk'
3434
PAGE_REQUESTED_ACTIVITY = 'page_requested'
3535
BLOCK_ACTIVITY = 'block'

perimeterx/px_proxy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ def send_reverse_xhr_request(self, config, ctx, body):
9292
filtered_headers = px_utils.merge_two_dicts(filtered_headers, headers)
9393
msg = 'Forwarding request from {} to client at {}{}'
9494
self._logger.debug(msg.format(ctx.uri.lower(), host, suffix_uri))
95-
px_response = px_httpc.send(full_url=host + suffix_uri, body=body,
95+
px_response = px_httpc.send(full_url=host + suffix_uri + "?" + ctx.query_params, body=body,
9696
headers=filtered_headers, config=config, method=ctx.http_method)
9797

9898
if px_response.status_code >= 400:

perimeterx/px_request_verifier.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ def verify_request(self, ctx, request):
2020
uri = ctx.uri
2121
px_proxy = PxProxy(self.config)
2222
if px_proxy.should_reverse_request(uri):
23-
return px_proxy.handle_reverse_request(self.config, ctx, request.data)
23+
return px_proxy.handle_reverse_request(self.config, ctx, request.get_data())
2424
if px_utils.is_static_file(ctx):
2525
self.logger.debug('Filter static file request. uri: {}'.format(uri))
2626
return True

requirements.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
setuptools==40.6.2
2-
requests==2.20.1
2+
requests>=2.18.4,<=2.20.1
33
Werkzeug==0.14.1
4-
pystache==0.5.4
4+
pystache>=0.5.1,<=0.5.4
55
pycryptodome==3.7.2

setup.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 = 'v2.3.0'
5+
version = 'v2.3.1'
66
setup(name='perimeterx-python-wsgi',
77
version=version,
88
license='MIT',

0 commit comments

Comments
 (0)