Skip to content

Commit

Permalink
fix cookie get issue
Browse files Browse the repository at this point in the history
  • Loading branch information
unknwon committed Dec 29, 2014
1 parent 1d082d9 commit b7c39df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion context.go
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,8 @@ func (ctx *Context) GetCookie(name string) string {
if err != nil {
return ""
}
return cookie.Value
val, _ := url.QueryUnescape(cookie.Value)
return val
}

// GetCookieInt returns cookie result in int type.
Expand Down
2 changes: 1 addition & 1 deletion macaron.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import (
"github.com/Unknwon/macaron/inject"
)

const _VERSION = "0.4.9.1228"
const _VERSION = "0.4.9.1229"

func Version() string {
return _VERSION
Expand Down

0 comments on commit b7c39df

Please sign in to comment.