Skip to content

Commit

Permalink
fix: Use only range of 10 bytes for GET method checker
Browse files Browse the repository at this point in the history
  • Loading branch information
kovalch authored Feb 2, 2024
1 parent 5ca5ee3 commit 4c23d2e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan_pkg_checker/utils/request_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ def check_url_status(test_url, http_method="HEAD"):
verify=False, # SSL certificate will not be verified
timeout=30,
headers={
"Range": "bytes=0-10", # Request the first 10 bytes
"Range": "bytes=0-10", # Request the first 10 bytes
"User-Agent": user_agent,
}
},
)
req.raise_for_status()
log.info("sent response %s" % req.status_code)
Expand Down

0 comments on commit 4c23d2e

Please sign in to comment.