Change http headers from list to dict

This commit is contained in:
shortcutme 2018-03-06 11:58:56 +01:00
parent b55832df34
commit b0a8c4d278
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE
4 changed files with 27 additions and 28 deletions

View file

@ -48,8 +48,8 @@ class UiRequestPlugin(object):
if user_created:
if not extra_headers:
extra_headers = []
extra_headers.append(('Set-Cookie', "master_address=%s;path=/;max-age=2592000;" % user.master_address)) # = 30 days
extra_headers = {}
extra_headers['Set-Cookie'] = "master_address=%s;path=/;max-age=2592000;" % user.master_address # = 30 days
loggedin = self.get.get("login") == "done"