You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@solr.apache.org by an...@apache.org on 2026/01/06 21:43:10 UTC
(solr) 02/02: fix release wizard, add json to the Accept header when testing
This is an automated email from the ASF dual-hosted git repository.
anshum pushed a commit to branch branch_10_0
in repository https://gitbox.apache.org/repos/asf/solr.git
commit 472cdaf4bb28e0b3237e310339c880b720221432
Author: Anshum Gupta <an...@apache.org>
AuthorDate: Tue Jan 6 13:42:55 2026 -0800
fix release wizard, add json to the Accept header when testing
---
dev-tools/scripts/smokeTestRelease.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dev-tools/scripts/smokeTestRelease.py b/dev-tools/scripts/smokeTestRelease.py
index 29fa6ed9404..2356708ab6c 100755
--- a/dev-tools/scripts/smokeTestRelease.py
+++ b/dev-tools/scripts/smokeTestRelease.py
@@ -106,7 +106,7 @@ def load(urlString):
try:
raw_request = urllib.request.Request(urlString)
raw_request.add_header('User-Agent', 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Firefox/78.0')
- raw_request.add_header('Accept', 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8')
+ raw_request.add_header('Accept', 'text/json,text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8')
content = urllib.request.urlopen(raw_request).read().decode('utf-8')
except Exception as e:
print('Retrying download of url %s after exception: %s' % (urlString, e))