Skip to content

fix(api): log octocat stream response bodies - #303

Closed
efegokdemir wants to merge 1 commit into
cli:trunkfrom
efegokdemir:codex/issue-210-octocat-stream
Closed

efegokdemir wants to merge 1 commit into
cli:trunkfrom
efegokdemir:codex/issue-210-octocat-stream

Conversation

@efegokdemir

@efegokdemir efegokdemir commented Sep 21, 2026 •

Copy link
Copy Markdown

Summary

Fix verbose HTTP logging so successful application/octocat-stream responses, such as GitHub's /octocat endpoint, include their response body.

Changes

  • Treat application/octocat-stream as an inspectable MIME type.
  • Preserve support for MIME parameters such as a charset.
  • Add table-driven regression coverage for octocat-stream and unrelated binary content.

Testing

  • go test ./...
  • go vet ./...
  • git diff --check

All checks pass.

Notes

The MIME check uses the existing prefix-based handling, matching the behavior of the other supported content types. This contribution was prepared with AI assistance and manually reviewed.

@efegokdemir

This comment was marked as spam.

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