From d2ab9e23abe3f02b1098568b58385d4f4df06119 Mon Sep 17 00:00:00 2001 From: Gitea Date: Tue, 27 Feb 2018 18:30:00 +0100 Subject: [PATCH] Fixed http status code on redirect --- routers/repo/issue.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/repo/issue.go b/routers/repo/issue.go index 6712f5417..ff1ba4210 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -1027,10 +1027,10 @@ func NewComment(ctx *context.Context, form auth.CreateCommentForm) { if models.IsErrDependenciesLeft(err) { if issue.IsPull { ctx.Flash.Error(ctx.Tr("repo.issues.dependency.pr_close_blocked")) - ctx.Redirect(fmt.Sprintf("%s/pulls/%d", ctx.Repo.RepoLink, issue.Index), http.StatusTemporaryRedirect) + ctx.Redirect(fmt.Sprintf("%s/pulls/%d", ctx.Repo.RepoLink, issue.Index), http.StatusSeeOther) } else { ctx.Flash.Error(ctx.Tr("repo.issues.dependency.issue_close_blocked")) - ctx.Redirect(fmt.Sprintf("%s/issues/%d", ctx.Repo.RepoLink, issue.Index), http.StatusTemporaryRedirect) + ctx.Redirect(fmt.Sprintf("%s/issues/%d", ctx.Repo.RepoLink, issue.Index), http.StatusSeeOther) } } } else {