mirror of
https://gitee.com/gitea/gitea
synced 2026-02-04 13:55:47 +08:00
Refactor HTTP request context (#17979)
This commit is contained in:
@@ -65,7 +65,7 @@ func goGet(ctx *context.Context) {
|
||||
if appURL.Scheme == string(setting.HTTP) {
|
||||
insecure = "--insecure "
|
||||
}
|
||||
ctx.Header().Set("Content-Type", "text/html")
|
||||
ctx.RespHeader().Set("Content-Type", "text/html")
|
||||
ctx.Status(http.StatusOK)
|
||||
_, _ = ctx.Write([]byte(com.Expand(`<!doctype html>
|
||||
<html>
|
||||
|
||||
Reference in New Issue
Block a user