Remove stickyness cookie domain from Lua balancer to match old behavior (#3648)
This commit is contained in:
parent
9f74dc2dd0
commit
39dd0c50da
2 changed files with 2 additions and 3 deletions
|
@ -52,7 +52,6 @@ local function set_cookie(self, value)
|
|||
key = self.cookie_name,
|
||||
value = value,
|
||||
path = cookie_path,
|
||||
domain = ngx.var.host,
|
||||
httponly = true,
|
||||
secure = ngx.var.https == "on",
|
||||
}
|
||||
|
|
|
@ -119,7 +119,7 @@ describe("Sticky", function()
|
|||
local expected_len = #util[test_backend_hash_fn .. "_digest"]("anything")
|
||||
assert.equal(#payload.value, expected_len)
|
||||
assert.equal(payload.path, ngx.var.location_path)
|
||||
assert.equal(payload.domain, ngx.var.host)
|
||||
assert.equal(payload.domain, nil)
|
||||
assert.equal(payload.httponly, true)
|
||||
assert.equal(payload.secure, false)
|
||||
return true, nil
|
||||
|
@ -148,7 +148,7 @@ describe("Sticky", function()
|
|||
local expected_len = #util[test_backend_hash_fn .. "_digest"]("anything")
|
||||
assert.equal(#payload.value, expected_len)
|
||||
assert.equal(payload.path, ngx.var.location_path)
|
||||
assert.equal(payload.domain, ngx.var.host)
|
||||
assert.equal(payload.domain, nil)
|
||||
assert.equal(payload.httponly, true)
|
||||
assert.equal(payload.secure, true)
|
||||
return true, nil
|
||||
|
|
Loading…
Reference in a new issue