From 8029ad45f028609538507972a616fada6368f0d6 Mon Sep 17 00:00:00 2001 From: pengyao Date: Mon, 30 Jul 2018 11:34:46 +0800 Subject: [PATCH] Fix parse_cookie_header function cookie name always None parse_cookie_header function is used when backend is tornado. But cookie name is always None, because programe not set name correct value --- salt/utils/http.py | 1 + 1 file changed, 1 insertion(+) diff --git a/salt/utils/http.py b/salt/utils/http.py index b7827d5eb3..eb32f19381 100644 --- a/salt/utils/http.py +++ b/salt/utils/http.py @@ -921,6 +921,7 @@ def parse_cookie_header(header): for item in list(cookie): if item in attribs: continue + name = item value = cookie.pop(item) # cookielib.Cookie() requires an epoch