2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-09 19:03:09 +08:00

FIX: specify path for dosp cookie

This commit is contained in:
Sam 2018-04-24 13:24:26 +10:00 committed by Robin Ward
parent bf6e548692
commit 035312d501
2 changed files with 2 additions and 2 deletions

View file

@ -94,7 +94,7 @@ describe Middleware::AnonymousCache::Helper do
is_anon = false
_status, headers, _body = app.call(env.dup)
expect(is_anon).to eq(true)
expect(headers['Set-Cookie']).to eq('dosp=1')
expect(headers['Set-Cookie']).to eq('dosp=1; Path=/')
# tricky change, a 50ms delay still will trigger protection
# once it is tripped