Skip to content

Conversation

@honsunrise
Copy link
Contributor

Rationale for this change

The current implementation incorrectly includes a 'Content-Type' header in get_object requests to OSS. According to the official SDK documentation and specifications, this header should not be included for get_object operations. This unnecessary header cause the pre-signed get object request URL can't directly usable in browsers.

What changes are included in this PR?

Removed the 'Content-Type' header from the request builder for get_object operations in the OSS service implementation. This aligns the behavior with the official OSS SDK specifications.

Are there any user-facing changes?

Yes, but they are internal improvements:

  • OSS get_object requests will no longer send an unnecessary 'Content-Type' header
  • Make the pre-signed get object request URL directly usable in browsers.
  • Improved compatibility with OSS API specifications
  • No breaking changes for end-users - this is a bug fix aligning with expected behavior

@honsunrise honsunrise requested a review from Xuanwo as a code owner July 30, 2025 13:52
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. releases-note/fix The PR fixes a bug or has a title that begins with "fix" labels Jul 30, 2025
Copy link
Member

@Xuanwo Xuanwo left a comment

Choose a reason for hiding this comment

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

Thank you for this!

@Xuanwo Xuanwo merged commit 1d3ae41 into apache:main Jul 30, 2025
88 checks passed
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label Jul 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

lgtm This PR has been approved by a maintainer releases-note/fix The PR fixes a bug or has a title that begins with "fix" size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants