Skip to content

Releases: chrisbanes/go.xtream-codes

v0.0.3

Choose a tag to compare

@chrisbanes chrisbanes released this 13 May 20:40

Add HTTP client timeout (30s) and realistic User-Agent

  • Custom HTTP transport with 30s timeout, 10s TLS handshake, 10s response header timeout
  • Changed default User-Agent to curl/8.7.1 (some IPTV providers block Go's default UA)
  • StatusCodeError type from v0.0.2 included

v0.0.2

Choose a tag to compare

@chrisbanes chrisbanes released this 13 May 20:01

Add StatusCodeError type for upstream HTTP errors

  • sendRequest now returns &StatusCodeError{StatusCode: N} instead of generic fmt.Errorf
  • Auth error wrapping uses %w for proper error chain unwrapping
  • Added TestStatusCodeError to verify errors.As works correctly

This allows callers to propagate the actual upstream HTTP status code
(e.g. 461 for connection limit exceeded) instead of returning 500.

v0.0.1

v0.0.1 Pre-release
Pre-release

Choose a tag to compare

@chrisbanes chrisbanes released this 16 Apr 18:42
Fix module name