Skip to content

Instantly share code, notes, and snippets.

@dannon
Created June 25, 2020 18:58
Show Gist options
  • Save dannon/fccf96d70b4dd2a457e8e8aef941381c to your computer and use it in GitHub Desktop.
Save dannon/fccf96d70b4dd2a457e8e8aef941381c to your computer and use it in GitHub Desktop.
diff --git a/lib/galaxy/web/framework/base.py b/lib/galaxy/web/framework/base.py
index edf1b22b97..9458f0911c 100644
--- a/lib/galaxy/web/framework/base.py
+++ b/lib/galaxy/web/framework/base.py
@@ -388,7 +388,7 @@ class Request(webob.Request):
@lazy_property
def cookies(self):
- return get_cookies(self.environ)
+ return get_cookies({"HTTP_COOKIE": "; ".join([x.strip() for x in self.environ.get("HTTP_COOKIE").split('; ') if x.startswith('galaxy')])})
@lazy_property
def base(self):
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment