summaryrefslogtreecommitdiffstats
path: root/routers/org/org.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/org/org.go')
-rw-r--r--routers/org/org.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/routers/org/org.go b/routers/org/org.go
index 98a327a97e..7b430e1708 100644
--- a/routers/org/org.go
+++ b/routers/org/org.go
@@ -7,6 +7,7 @@ package org
import (
"errors"
+ "net/http"
"code.gitea.io/gitea/models"
"code.gitea.io/gitea/modules/base"
@@ -30,7 +31,7 @@ func Create(ctx *context.Context) {
ctx.ServerError("Not allowed", errors.New(ctx.Tr("org.form.create_org_not_allowed")))
return
}
- ctx.HTML(200, tplCreateOrg)
+ ctx.HTML(http.StatusOK, tplCreateOrg)
}
// CreatePost response for create organization
@@ -44,7 +45,7 @@ func CreatePost(ctx *context.Context) {
}
if ctx.HasError() {
- ctx.HTML(200, tplCreateOrg)
+ ctx.HTML(http.StatusOK, tplCreateOrg)
return
}