Skip to content

Commit

Permalink
Remove re-encode
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy5189 committed Dec 29, 2023
1 parent 1fff973 commit ab902ab
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/session_cookie.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ func sessionCookieEndPoint(c *gin.Context, config *Config) error {

func attachSessionCookie(c *gin.Context, config *Config, dsc string, dsc_new bool) {
if dsc_new {
urlEncodedDsc := url.QueryEscape(dsc)
c.SetCookie(SessionCookieName, urlEncodedDsc, config.SessionCookieTtlSeconds, "/", "", false, true)
c.SetCookie(SessionCookieName, dsc, config.SessionCookieTtlSeconds, "/", "", false, true)
}
// for nginx log
c.Header("X-Deflect-Session", dsc)
Expand Down

0 comments on commit ab902ab

Please sign in to comment.