Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use http.StatusTemporaryRedirect(307) when serve avatar directly #19739

Merged
merged 3 commits into from
May 19, 2022
Merged

use http.StatusTemporaryRedirect(307) when serve avatar directly #19739

merged 3 commits into from
May 19, 2022

Conversation

yankeguo
Copy link
Contributor

use http.StatusTemporaryRedirect(307) when serve avatar directly

browser caches 301 redirections, pre-signed s3 url would expire at some later point

use http.StatusTemporaryRedirect(307) when serve avatar directly

browser caches 301 redirections, pre-signed s3 url would expire at some later point
@yankeguo yankeguo changed the title Update base.go use http.StatusTemporaryRedirect(307) when serve avatar directly May 18, 2022
@codecov-commenter
Copy link

Codecov Report

Merging #19739 (3911cc1) into main (e82db15) will increase coverage by 0.17%.
The diff coverage is 0.00%.

@@            Coverage Diff             @@
##             main   #19739      +/-   ##
==========================================
+ Coverage   47.22%   47.39%   +0.17%     
==========================================
  Files         958      958              
  Lines      133603   133603              
==========================================
+ Hits        63088    63326     +238     
+ Misses      62871    62614     -257     
- Partials     7644     7663      +19     
Impacted Files Coverage Δ
routers/web/base.go 16.66% <0.00%> (ø)
services/pull/pull.go 40.34% <0.00%> (+0.15%) ⬆️
routers/api/v1/repo/pull.go 47.17% <0.00%> (+0.17%) ⬆️
models/repo/repo.go 62.25% <0.00%> (+0.73%) ⬆️
models/issue_comment.go 52.60% <0.00%> (+0.99%) ⬆️
modules/queue/workerpool.go 54.66% <0.00%> (+1.03%) ⬆️
services/pull/check.go 29.13% <0.00%> (+1.18%) ⬆️
modules/log/event.go 62.25% <0.00%> (+2.33%) ⬆️
modules/queue/queue_disk.go 63.33% <0.00%> (+3.33%) ⬆️
modules/git/utils.go 69.66% <0.00%> (+3.37%) ⬆️
... and 11 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e82db15...3911cc1. Read the comment docs.

@GiteaBot GiteaBot added the lgtm/need 2 This PR needs two approvals by maintainers to be considered for merging. label May 18, 2022
@Gusted Gusted added this to the 1.17.0 milestone May 18, 2022
@Gusted Gusted added the type/enhancement An improvement of existing functionality label May 18, 2022
@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 May 18, 2022
@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 May 18, 2022
@techknowlogick techknowlogick merged commit 3e5ea9a into go-gitea:main May 19, 2022
zjjhot added a commit to zjjhot/gitea that referenced this pull request May 19, 2022
* giteaofficial/main:
  Update base.go (go-gitea#19739)
  [doctor] do not update User Stars numbers unless --fix (go-gitea#19750)
  Fix incorrect translation key (go-gitea#19744)
  Improved ref comment link when origin is body/title (go-gitea#19741)
  [doctor] explain what enable-push-options does (go-gitea#19740)
@yankeguo yankeguo deleted the patch-1 branch July 20, 2022 07:08
AbdulrhmnGhanem pushed a commit to kitspace/gitea that referenced this pull request Aug 24, 2022
use http.StatusTemporaryRedirect(307) when serve avatar directly

browser caches 301 redirections, pre-signed s3 url would expire at some later point

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
@go-gitea go-gitea locked and limited conversation to collaborators May 3, 2023
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/enhancement An improvement of existing functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants