summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorUnknwon <joe2010xtmf@163.com>2014-10-18 23:26:55 -0400
committerUnknwon <joe2010xtmf@163.com>2014-10-18 23:26:55 -0400
commit3abc41cccab2486012b46305827433ad6f5deade (patch)
tree91f34bbc2dcfe9266039aafdddbb6be45c7464f4 /modules
parent9e3a1bc11af8ab95a4d6b47607a89207941a3119 (diff)
downloadgitea-3abc41cccab2486012b46305827433ad6f5deade.tar.gz
gitea-3abc41cccab2486012b46305827433ad6f5deade.zip
Fix API broken
Diffstat (limited to 'modules')
-rw-r--r--modules/middleware/context.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/middleware/context.go b/modules/middleware/context.go
index 86e98c9071..c45206a988 100644
--- a/modules/middleware/context.go
+++ b/modules/middleware/context.go
@@ -147,7 +147,7 @@ func (ctx *Context) ServeContent(name string, r io.ReadSeeker, params ...interfa
ctx.Resp.Header().Set("Expires", "0")
ctx.Resp.Header().Set("Cache-Control", "must-revalidate")
ctx.Resp.Header().Set("Pragma", "public")
- http.ServeContent(ctx.Resp, ctx.Req, name, modtime, r)
+ http.ServeContent(ctx.Resp, ctx.Req.Request, name, modtime, r)
}
// Contexter initializes a classic context for a request.