File tree 2 files changed +9
-2
lines changed
2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
All notable changes to ` lua-resty-session ` will be documented in this file.
4
4
5
+ ## [ 2.22] - 2018-03-17
6
+ ### Fixed
7
+ - Only sets self.cookie.secure if not defined.
8
+
5
9
## [ 2.21] - 2018-03-16
6
10
### Screwed
7
11
- Forgot to bump version number.
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ local function init()
203
203
end
204
204
205
205
local session = {
206
- _VERSION = " 2.21 "
206
+ _VERSION = " 2.22 "
207
207
}
208
208
209
209
session .__index = session
@@ -268,7 +268,10 @@ function session.open(opts)
268
268
self = session .new (opts )
269
269
end
270
270
271
- self .cookie .secure = var .scheme == " https" or var .https == " on"
271
+ if self .cookie .secure == nil then
272
+ self .cookie .secure = var .scheme == " https" or var .https == " on"
273
+ end
274
+
272
275
self .key = concat {
273
276
self .check .ssi and var .ssl_session_id or " " ,
274
277
self .check .ua and var .http_user_agent or " " ,
You can’t perform that action at this time.
0 commit comments