Skip to content

Commit

Permalink
Don't verify https by default when making requests
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
dralley committed Jan 20, 2021
1 parent fb8cc96 commit d328935
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pulp_smash/utils.py
Expand Up @@ -75,7 +75,7 @@ def get_sha256_checksum(url):
return _CHECKSUM_CACHE[url]


def http_get(url, **kwargs):
def http_get(url, verify=False, **kwargs):
"""Issue a HTTP request to the ``url`` and return the response content.
This is useful for downloading file contents over HTTP[S].
Expand All @@ -84,7 +84,7 @@ def http_get(url, **kwargs):
:param kwargs: additional kwargs to be passed to ``requests.get``.
:returns: the response content of a GET request to ``url``.
"""
response = requests.get(url, **kwargs)
response = requests.get(url, verify=verify, **kwargs)
response.raise_for_status()
logger.debug("GET Request to %s finished with %s", url, response)
return response.content
Expand Down

0 comments on commit d328935

Please sign in to comment.