Skip to content

fix: harden request error handling#12

Merged
spiegel-im-spiegel merged 1 commit into
mainfrom
fix/error-handling-guards
May 9, 2026
Merged

fix: harden request error handling#12
spiegel-im-spiegel merged 1 commit into
mainfrom
fix/error-handling-guards

Conversation

@spiegel-im-spiegel
Copy link
Copy Markdown
Member

Summary

  • return ErrInvalidURL when GetWithContext/PostWithContext receives a nil URL
  • make WithHTTPClient(nil) fall back to a default HTTP client
  • fix os.ErrClosed filtering to check the close error (cerr) instead of the aggregated error
  • add tests for nil URL behavior and nil client fallback
  • include task-generated updates (go.sum, dependency.png)

Validation

  • task test

@spiegel-im-spiegel spiegel-im-spiegel merged commit e3f7568 into main May 9, 2026
4 checks passed
@spiegel-im-spiegel spiegel-im-spiegel deleted the fix/error-handling-guards branch May 9, 2026 13:08
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.

1 participant