We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ecc2be5 + b8fe487 commit 23e12c7Copy full SHA for 23e12c7
monitoring/ceph-mixin/tests_alerts/validate_rules.py
@@ -84,7 +84,14 @@ def fetch(self, url_str: str) -> None:
84
if url in self.cache:
85
return self.cache[url]
86
87
- req = urllib.request.Request(url)
+ headers = {
88
+ "User-Agent": (
89
+ "Mozilla/5.0 (X11; Linux x86_64) "
90
+ "AppleWebKit/537.36 (KHTML, like Gecko) "
91
+ "Chrome/139.0.0.0 Safari/537.36"
92
+ ),
93
+ }
94
+ req = urllib.request.Request(url, headers=headers)
95
try:
96
r = urllib.request.urlopen(req)
97
except urllib.error.HTTPError as e:
0 commit comments