Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[http] Better handle invalid 401 response #549

Merged
merged 1 commit into from
Dec 27, 2023
Merged

Conversation

J-N-K
Copy link
Member

@J-N-K J-N-K commented Dec 27, 2023

It has been discovered that some servers respond with a 401 without WWW-Authenticate header if the original request was sent with creentials. While this is a protocol violation, the user can't fix it, because it is server-side. This PR handles these edge cases more gracefully.

It has been discovered that some servers respond with a 401 without `WWW-Authenticate` header if the original request was sent with creentials. While this is a protocol violation, the user can't fix it, because it is server-side. This PR handles these edge cases more gracefully.

Signed-off-by: Jan N. Klug <[email protected]>
@J-N-K J-N-K added the enhancement New feature or request label Dec 27, 2023
@J-N-K J-N-K added this to the 4.0.3 milestone Dec 27, 2023
@J-N-K J-N-K merged commit a9dab3d into smarthomej:4.2.x Dec 27, 2023
2 checks passed
@J-N-K J-N-K deleted the http branch December 27, 2023 16:46
J-N-K added a commit that referenced this pull request Dec 27, 2023
It has been discovered that some servers respond with a 401 without `WWW-Authenticate` header if the original request was sent with creentials. While this is a protocol violation, the user can't fix it, because it is server-side. This PR handles these edge cases more gracefully.

Signed-off-by: Jan N. Klug <[email protected]>
(cherry picked from commit a9dab3d)
J-N-K added a commit that referenced this pull request Dec 27, 2023
It has been discovered that some servers respond with a 401 without `WWW-Authenticate` header if the original request was sent with creentials. While this is a protocol violation, the user can't fix it, because it is server-side. This PR handles these edge cases more gracefully.

Signed-off-by: Jan N. Klug <[email protected]>
(cherry picked from commit a9dab3d)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant