Skip to content

Harden API and image HTTP request handling #285

@digitalghost-dev

Description

@digitalghost-dev

Add safer HTTP handling for external API and image requests.

  • Use timeout-backed HTTP clients instead of direct http.Get
  • Check non-200 responses before reading/decoding bodies
  • Cap response body sizes for API JSON and image downloads
  • Prevent latest-release output from rendering an empty tag on GitHub API errors
  • Add focused tests for latest-release and oversized API responses

Metadata

Metadata

Assignees

No one assigned

    Labels

    improvementImprovement to an existing feature.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions