Skip to content

Commit

Permalink
Fix for validate_cart
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Gschwender committed Jun 11, 2014
1 parent 095b4ea commit a78db24
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,4 @@
* 0.9.16: Added validate cert to configuration
* 0.9.17: Added support for GIF format
* 0.9.18: Fix for travis builds on python 2.6 and 3.3
* 0.9.19: Validate cert fix
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,7 @@ Changelog
- 0.9.16: Added validate cert to configuration
- 0.9.17: Added support for GIF format
- 0.9.18: Fix for travis builds on python 2.6 and 3.3
- 0.9.19: Validate cert fix

TODO
====
Expand Down
5 changes: 3 additions & 2 deletions pilbox/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,14 @@
* 0.9.16: Added validate cert to configuration
* 0.9.17: Added support for GIF format
* 0.9.18: Fix for travis builds on python 2.6 and 3.3
* 0.9.19: Validate cert fix
"""

# human-readable version number
version = "0.9.18"
version = "0.9.19"

# The first three numbers are the components of the version number.
# The fourth is zero for an official release, positive for a development
# branch, or negative for a release candidate or beta (after the base version
# number has been incremented)
version_info = (0, 9, 18, 0)
version_info = (0, 9, 19, 0)
7 changes: 4 additions & 3 deletions pilbox/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,12 @@ def get(self):
url = urljoin(self.settings.get("implicit_base_url"), url)

client = tornado.httpclient.AsyncHTTPClient(
max_clients=self.settings.get("max_requests"),
validate_cert=self.settings.get("validate_cert"))
max_clients=self.settings.get("max_requests"))
try:
resp = yield client.fetch(
url, request_timeout=self.settings.get("timeout"))
url,
request_timeout=self.settings.get("timeout"),
validate_cert=self.settings.get("validate_cert"))
except (socket.gaierror, tornado.httpclient.HTTPError) as e:
logger.warn("Fetch error for %s: %s"
% (self.get_argument("url"), str(e)))
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def run(self):


setup(name='pilbox',
version='0.9.18',
version='0.9.19',
description='Pilbox is an image resizing application server built on the Tornado web framework using the Pillow Imaging Library',
long_description=readme,
classifiers=[
Expand Down

0 comments on commit a78db24

Please sign in to comment.