-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
configurable http #3884
configurable http #3884
Conversation
c2cgeoportal/lib/lingua_extractor.py
Outdated
if http_options is not None: | ||
disable_ssl_certificate_validation = http_options.get("disable_ssl_certificate_validation", False) | ||
http = httplib2.Http(disable_ssl_certificate_validation=disable_ssl_certificate_validation) | ||
return http |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
simpler:
return httplib2.Http(**self.config.get("http_options", {}))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed, thanks
@@ -245,6 +245,10 @@ vars: | |||
# architecture. | |||
external_themes_url: | |||
|
|||
# Available options for http sessions created within c2cgeoportal | |||
http_options: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be added in CONST_config-schema.yaml
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
@sbrunner can you please review once more? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks :-)
Please when you have this kind oh hugly commits squash your commits, it makes the merge harder ... |
Addresses #1826 (so far, only for lingua_extractor functionality, because currently only needed there).