From 60a35c8abae23ffbd58810d2ec2790d49e98bd72 Mon Sep 17 00:00:00 2001 From: Marco Paga Date: Sun, 13 Aug 2017 11:34:34 +0200 Subject: [PATCH] Setting the Cookie Path explicitly to root --- glide.lock | 6 +++--- glide.yaml | 2 +- vendor/github.com/vulcand/oxy/roundrobin/stickysessions.go | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/glide.lock b/glide.lock index 48734234a..097553481 100644 --- a/glide.lock +++ b/glide.lock @@ -1,5 +1,5 @@ -hash: a2fcd3a2a1472cde2a2703cc3e54ba8d293546b800c7ff19a9c71d2e4657d471 -updated: 2017-08-10T19:56:04.346751095+02:00 +hash: c7f74f8b5eac556a531d2cb3bae212e32785c1128d416c75fabedc31d27f0e03 +updated: 2017-08-12T14:15:06.346751095+02:00 imports: - name: cloud.google.com/go version: 2e6a95edb1071d750f6d7db777bf66cd2997af6c @@ -477,7 +477,7 @@ imports: - name: github.com/urfave/negroni version: 490e6a555d47ca891a89a150d0c1ef3922dfffe9 - name: github.com/vulcand/oxy - version: 05a57556d820dc5c56721ebdefbafc15f36fac98 + version: d40fb60c9a1620892a6fc146dcdc891fb02bd488 repo: https://github.com/containous/oxy.git vcs: git subpackages: diff --git a/glide.yaml b/glide.yaml index d543e28fa..a723ff442 100644 --- a/glide.yaml +++ b/glide.yaml @@ -12,7 +12,7 @@ import: - package: github.com/cenk/backoff - package: github.com/containous/flaeg - package: github.com/vulcand/oxy - version: 05a57556d820dc5c56721ebdefbafc15f36fac98 + version: d40fb60c9a1620892a6fc146dcdc891fb02bd488 repo: https://github.com/containous/oxy.git vcs: git subpackages: diff --git a/vendor/github.com/vulcand/oxy/roundrobin/stickysessions.go b/vendor/github.com/vulcand/oxy/roundrobin/stickysessions.go index 8a458b87c..d24dfd940 100644 --- a/vendor/github.com/vulcand/oxy/roundrobin/stickysessions.go +++ b/vendor/github.com/vulcand/oxy/roundrobin/stickysessions.go @@ -38,7 +38,7 @@ func (s *StickySession) GetBackend(req *http.Request, servers []*url.URL) (*url. } func (s *StickySession) StickBackend(backend *url.URL, w *http.ResponseWriter) { - c := &http.Cookie{Name: s.cookiename, Value: backend.String()} + c := &http.Cookie{Name: s.cookiename, Value: backend.String(), Path: "/"} http.SetCookie(*w, c) return }