Skip to content

Commit

Permalink
remove the is secure login instead use the settings directly
Browse files Browse the repository at this point in the history
  • Loading branch information
svtd committed Jun 25, 2021
1 parent 241ba00 commit 3df91ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion session.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func (m *Manager) setCookie(sessionID string, w http.ResponseWriter, r *http.Req
Value: cookieValue,
Path: "/",
HttpOnly: true,
Secure: m.isSecure(r),
Secure: m.opts.secure,
Domain: m.opts.domain,
SameSite: m.opts.sameSite,
}
Expand Down

0 comments on commit 3df91ad

Please sign in to comment.