Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Fix binary files retrieval#1183

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
kerobbi merged 5 commits intomainfromkerobbi/fix-binary-content-corruption
Oct 7, 2025

Conversation

kerobbi
Copy link
Contributor

This PR fixes binary file corruption in theget_file_contents tool by tightening content-type detection logic.

Closes:#1168

@kerobbikerobbi requested a review froma team as acode ownerOctober 6, 2025 16:12
@CopilotCopilotAI review requested due to automatic review settingsOctober 6, 2025 16:12
Copy link
Contributor

@CopilotCopilotAI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes binary file corruption in theget_file_contents tool by improving content-type detection logic to properly differentiate between text and binary content types.

  • Replaced broad application/* prefix matching with specific text content type detection
  • Added comprehensive test coverage for PDF binary file handling

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

FileDescription
pkg/github/repositories.goUpdated content-type detection logic to properly identify text vs binary content
pkg/github/repositories_test.goAdded test case for PDF file retrieval to verify binary content handling

Tip: Customize your code reviews with copilot-instructions.md.Create the file orlearn how to get started.

Copy link
Contributor

@mattdhollowaymattdholloway left a comment

Choose a reason for hiding this comment

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

lgtm!

@kerobbikerobbi merged commitdee5927 intomainOct 7, 2025
16 checks passed
@kerobbikerobbi deleted the kerobbi/fix-binary-content-corruption branchOctober 7, 2025 15:08
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@mattdhollowaymattdhollowaymattdholloway approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

Bug in mimeType handling in get_file_contents
2 participants
@kerobbi@mattdholloway

[8]ページ先頭

©2009-2025 Movatter.jp