@@ -356,7 +356,7 @@ def process(self, request, **kw):
356356
357357 application_cookies = output .cookies
358358 if application_cookies :
359- self .rendered_headers [' X-Feincms-Cookie' ] = application_cookies
359+ self .rendered_headers [" X-Feincms-Cookie" ] = application_cookies
360360
361361 elif isinstance (output , tuple ) and "view" in kw :
362362 kw ["view" ].template_name = output [0 ]
@@ -425,13 +425,20 @@ def _update_response_headers(self, request, response, headers):
425425 response ["Expires" ] = http_date (mktime (min (lm_list )))
426426
427427 # Add all cookies
428- cookies = headers .get (' X-Feincms-Cookie' , None )
428+ cookies = headers .get (" X-Feincms-Cookie" , None )
429429 if cookies :
430430 for kookie , val in cookies .items ():
431- response .set_cookie (kookie , value = val .value ,
432- max_age = val ['max-age' ], expires = val ['expires' ], path = val ['path' ],
433- domain = val ['domain' ], secure = val ['secure' ], httponly = val ['httponly' ],
434- samesite = val ['samesite' ])
431+ response .set_cookie (
432+ kookie ,
433+ value = val .value ,
434+ max_age = val ["max-age" ],
435+ expires = val ["expires" ],
436+ path = val ["path" ],
437+ domain = val ["domain" ],
438+ secure = val ["secure" ],
439+ httponly = val ["httponly" ],
440+ samesite = val ["samesite" ],
441+ )
435442
436443 @classmethod
437444 def app_reverse_cache_key (self , urlconf_path , ** kwargs ):
0 commit comments