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

fix: invalid_client response is missing application/json content-type #86

Merged
merged 2 commits into from
May 4, 2023

Conversation

aliev
Copy link
Owner

@aliev aliev commented May 2, 2023

Fixing an issue #85

@codecov-commenter
Copy link

Codecov Report

Merging #86 (abe9735) into master (d3b670f) will not change coverage.
The diff coverage is 100.00%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##           master      #86   +/-   ##
=======================================
  Coverage   94.41%   94.41%           
=======================================
  Files          17       17           
  Lines         734      734           
  Branches      114      114           
=======================================
  Hits          693      693           
  Misses         32       32           
  Partials        9        9           
Impacted Files Coverage Δ
aioauth/errors.py 100.00% <100.00%> (ø)

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

super().__init__(request, description, headers or HTTPHeaderDict())
super().__init__(request, description, headers or default_headers)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Passing the default headers by reference here will have the self.headers['WWW-Authenticate"] = ... assignment in L101 below also modify default_headers. HTTPHeaderDict(default_headers) works though.

Copy link
Owner Author

@aliev aliev May 3, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh you are right, stupid mistake on my part 🤦🏻

@aliev aliev merged commit 394372a into master May 4, 2023
@aliev aliev deleted the bugfix/issues/85 branch May 4, 2023 09:04
Copy link
Collaborator

@tdg5 tdg5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants