diff options
Diffstat (limited to 'modules/web/middleware/cookie.go')
-rw-r--r-- | modules/web/middleware/cookie.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/web/middleware/cookie.go b/modules/web/middleware/cookie.go index f44d2c3688..80fe302137 100644 --- a/modules/web/middleware/cookie.go +++ b/modules/web/middleware/cookie.go @@ -119,7 +119,7 @@ func DeleteCSRFCookie(resp http.ResponseWriter) { // SetCookie set the cookies // TODO: Copied from gitea.com/macaron/macaron and should be improved after macaron removed. -func SetCookie(resp http.ResponseWriter, name string, value string, others ...interface{}) { +func SetCookie(resp http.ResponseWriter, name, value string, others ...interface{}) { cookie := http.Cookie{} cookie.Name = name cookie.Value = url.QueryEscape(value) |