Skip to content

Redirect to a presigned URL of HEAD for HEAD requests#35088

Merged
wxiaoguang merged 6 commits into
go-gitea:mainfrom
risu729:main
Jul 16, 2025
Merged

Redirect to a presigned URL of HEAD for HEAD requests#35088
wxiaoguang merged 6 commits into
go-gitea:mainfrom
risu729:main

Conversation

@risu729

@risu729 risu729 commented Jul 15, 2025

Copy link
Copy Markdown
Contributor

Resolves #35086.

Sorry, I was not sure where to add the new tests.
The original PR #11387 does not include the test for presigned URLs.

Also, I'm new to Go, so I apologise if the design of the function parameters is bad.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label Jul 15, 2025
@GiteaBot GiteaBot added lgtm/need 1 This PR needs approval from one additional maintainer to be merged. and removed lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. labels Jul 16, 2025
@wxiaoguang wxiaoguang added this to the 1.25.0 milestone Jul 16, 2025
@GiteaBot GiteaBot added lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. and removed lgtm/need 1 This PR needs approval from one additional maintainer to be merged. labels Jul 16, 2025
@risu729

risu729 commented Jul 16, 2025

Copy link
Copy Markdown
Contributor Author

Thank you for the prompt review and for adding the test!

@wxiaoguang

Copy link
Copy Markdown
Contributor

Thank you very much for the improvement, let's merge and try 😄

@wxiaoguang wxiaoguang enabled auto-merge (squash) July 16, 2025 11:08
@wxiaoguang wxiaoguang merged commit e1e4815 into go-gitea:main Jul 16, 2025
26 checks passed
zjjhot added a commit to zjjhot/gitea that referenced this pull request Jul 18, 2025
* giteaofficial/main:
  [skip ci] Updated translations via Crowdin
  Increase gap on latest commit (go-gitea#35104)
  Fix job status aggregation logic (go-gitea#35000)
  Fix some missed GitHeadRefName when renaming (go-gitea#35102)
  Fix error logs and improve some comments/messages (go-gitea#35105)
  Support Basic Authentication for archive downloads (go-gitea#35087)
  Run `uv run` with `--frozen` (go-gitea#35097)
  Improve package API log handling (go-gitea#35100)
  Rename pull request GetGitRefName to GetGitHeadRefName (go-gitea#35093)
  Fix review comment/dimiss comment x reference can be refereced back (go-gitea#35094)
  Fix submodule nil check (go-gitea#35096)
  Redirect to a presigned URL of HEAD for HEAD requests (go-gitea#35088)
@go-gitea go-gitea locked as resolved and limited conversation to collaborators Oct 14, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

lgtm/done This PR has enough approvals to get merged. There are no important open reservations anymore. type/bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

HEAD requests to attachments always result in 403 Forbidden if using minio

4 participants