We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4de0975 commit c674bc8Copy full SHA for c674bc8
1 file changed
comfy_cli/file_utils.py
@@ -55,7 +55,7 @@ def check_unauthorized(url: str, headers: Optional[dict] = None) -> bool:
55
bool: True if the response status code is 401, False otherwise.
56
"""
57
try:
58
- response = requests.get(url, headers=headers, allow_redirects=True)
+ response = requests.get(url, headers=headers, allow_redirects=True, stream=True)
59
return response.status_code == 401
60
except requests.RequestException:
61
# If there's an error making the request, we can't determine if it's unauthorized
0 commit comments