这是indexloc提供的服务,不要输入任何密码
Skip to content

Avoid NPE when populating headers with nil response #179

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

Merged
merged 1 commit into from
Jun 20, 2025

Conversation

kdudfield
Copy link

When using this library with the GitHub GraphQL API, I found it panics when github returns a 403 with no response. Guarding the header population behind a nil check prevents this.

Copy link

@hgiasac hgiasac left a comment

Choose a reason for hiding this comment

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

Nice catch. Thank you for contributing

@hgiasac hgiasac merged commit cf05936 into hasura:master Jun 20, 2025
1 check failed
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.

2 participants