summaryrefslogtreecommitdiffstats
path: root/routers/repo/search.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/search.go')
-rw-r--r--routers/repo/search.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/repo/search.go b/routers/repo/search.go
index 481b64d184..af4fe9ef12 100644
--- a/routers/repo/search.go
+++ b/routers/repo/search.go
@@ -5,6 +5,7 @@
package repo
import (
+ "net/http"
"path"
"strings"
@@ -51,5 +52,5 @@ func Search(ctx *context.Context) {
pager.AddParam(ctx, "l", "Language")
ctx.Data["Page"] = pager
- ctx.HTML(200, tplSearch)
+ ctx.HTML(http.StatusOK, tplSearch)
}