Skip to content
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

Disable ssl verification #313

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion grip/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def _render_rate_limit_page(self, exception=None):

def _download(self, url, binary=False):
if urlparse(url).netloc:
r = requests.get(url)
r = requests.get(url, verify=False)
return r.content if binary else r.text

with self.test_client() as c:
Expand Down
6 changes: 3 additions & 3 deletions grip/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def _get_style_urls(self, asset_url_path):
return cached

# Find style URLs
r = requests.get(STYLE_URLS_SOURCE)
r = requests.get(STYLE_URLS_SOURCE, verify=False)
if not 200 <= r.status_code < 300:
print('Warning: retrieving styles gave status code',
r.status_code, file=sys.stderr)
Expand Down Expand Up @@ -130,7 +130,7 @@ def _cache_contents(self, style_urls, asset_url_path):
for style_url in style_urls:
if not self.quiet:
print(' * Downloading style', style_url, file=sys.stderr)
r = requests.get(style_url)
r = requests.get(style_url, verify=False)
if not 200 <= r.status_code < 300:
print(' -> Warning: Style request responded with',
r.status_code, file=sys.stderr)
Expand All @@ -153,7 +153,7 @@ def _cache_contents(self, style_urls, asset_url_path):
if not self.quiet:
print(' * Downloading asset', asset_url, file=sys.stderr)
# Retrieve binary file and show message
r = requests.get(asset_url, stream=True)
r = requests.get(asset_url, stream=True, verify=False)
if not 200 <= r.status_code < 300:
print(' -> Warning: Asset request responded with',
r.status_code, file=sys.stderr)
Expand Down