Skip to content

Commit ce3fe05

Browse files
committed
Git client will follow 301 but 307
1 parent 51d86ad commit ce3fe05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/context/repo.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ func RedirectToRepo(ctx *Base, redirectRepoID int64) {
328328
if ctx.Req.URL.RawQuery != "" {
329329
redirectPath += "?" + ctx.Req.URL.RawQuery
330330
}
331-
ctx.Redirect(path.Join(setting.AppSubURL, redirectPath), http.StatusTemporaryRedirect)
331+
ctx.Redirect(path.Join(setting.AppSubURL, redirectPath), http.StatusMovedPermanently)
332332
}
333333

334334
func repoAssignment(ctx *Context, repo *repo_model.Repository) {

0 commit comments

Comments
 (0)