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

Handle possibility of nil context, clients, or headers #524

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

hairyhenderson
Copy link
Owner

If I call WithHTTPClient(nil) the client will be set to nil, rather than falling back to the default client which was originally set. This fixes that!

Signed-off-by: Dave Henderson <dhenderson@gmail.com>
@hairyhenderson hairyhenderson added the bug Something isn't working label Jan 17, 2024
@hairyhenderson hairyhenderson self-assigned this Jan 17, 2024
@hairyhenderson hairyhenderson enabled auto-merge (squash) January 17, 2024 02:37
@hairyhenderson hairyhenderson merged commit dd2398b into main Jan 17, 2024
8 checks passed
@hairyhenderson hairyhenderson deleted the handle-nil-withfuncs branch January 17, 2024 02:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant