We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 61c9a8d commit 9c274f0Copy full SHA for 9c274f0
src/django_tailwind_cli/config.py
@@ -74,7 +74,7 @@ def get_version() -> tuple[str, Version]:
74
raise ValueError("TAILWIND_CLI_SRC_REPO must not be None.")
75
76
if version_str == "latest":
77
- r = requests.get(f"https://github.com/{repo_url}/releases/latest/", timeout=2)
+ r = requests.get(f"https://github.com/{repo_url}/releases/latest/", timeout=2, allow_redirects=False)
78
if r.ok and "location" in r.headers:
79
version_str = r.headers["location"].rstrip("/").split("/")[-1].replace("v", "")
80
return version_str, Version.parse(version_str)
0 commit comments