Skip to content

Commit

Permalink
Merge remote-tracking branch 'pricingassistant/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
agschwender committed Apr 20, 2017
2 parents f556d2f + 47e7129 commit 05948a5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ To see a list of all available options, run
--retain default adaptive retain percent, 1-99
--timeout timeout of requests in seconds (default 10)
--validate_cert validate certificates (default True)
--user_agent user agent


Calling
Expand Down
3 changes: 3 additions & 0 deletions pilbox/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
define("validate_cert", help="validate certificates", type=bool, default=True)
define("proxy_host", help="proxy hostname")
define("proxy_port", help="proxy port", type=int)
define("user_agent", help="user agent", type=str)

# header related settings
define("content_type_from_image",
Expand Down Expand Up @@ -118,6 +119,7 @@ def __init__(self, **kwargs):
timeout=options.timeout,
implicit_base_url=options.implicit_base_url,
ca_certs=options.ca_certs,
user_agent=options.user_agent,
validate_cert=options.validate_cert,
content_type_from_image=options.content_type_from_image,
proxy_host=options.proxy_host,
Expand Down Expand Up @@ -201,6 +203,7 @@ def fetch_image(self):
request_timeout=self.settings.get("timeout"),
ca_certs=self.settings.get("ca_certs"),
validate_cert=self.settings.get("validate_cert"),
user_agent=self.settings.get("user_agent"),
proxy_host=self.settings.get("proxy_host"),
proxy_port=self.settings.get("proxy_port"))
raise tornado.gen.Return(resp)
Expand Down

0 comments on commit 05948a5

Please sign in to comment.