summaryrefslogtreecommitdiff
path: root/examples/basic_patching.py
diff options
context:
space:
mode:
author谭九鼎 <109224573@qq.com>2022-05-09 21:38:53 +0800
committerGitHub <noreply@github.com>2022-05-09 21:38:53 +0800
commitdc987c27390d91f1fef867952208beaf2624036c (patch)
tree7478daabef68c2c66d3717fd1302d686fd74f1f6 /examples/basic_patching.py
parent20ec774349a815f4c91f1d04d3bee01deb640cc3 (diff)
downloadrequests-cache-dc987c27390d91f1fef867952208beaf2624036c.tar.gz
use https for links
Diffstat (limited to 'examples/basic_patching.py')
-rwxr-xr-xexamples/basic_patching.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/basic_patching.py b/examples/basic_patching.py
index 0e94b23..66842f2 100755
--- a/examples/basic_patching.py
+++ b/examples/basic_patching.py
@@ -16,15 +16,15 @@ requests_cache.install_cache('example_cache', backend='sqlite')
def main():
# The real request will only be made once; afterward, the cached response is used
for i in range(5):
- response = requests.get('http://httpbin.org/get')
+ response = requests.get('https://httpbin.org/get')
# This is more obvious when calling a slow endpoint
for i in range(5):
- response = requests.get('http://httpbin.org/delay/2')
+ response = requests.get('https://httpbin.org/delay/2')
# Caching can be disabled if we want to get a fresh page and not cache it
with requests_cache.disabled():
- print(requests.get('http://httpbin.org/ip').text)
+ print(requests.get('https://httpbin.org/ip').text)
# Get some debugging info about the cache
print(requests_cache.get_cache())