Browse Source

Debug stuff

pull/24/head
Ben Kurtovic 12 years ago
parent
commit
4ef8900b29
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      pages/debug.mako
  2. +1
    -1
      toolserver/cookies.py

+ 2
- 0
pages/debug.mako View File

@@ -3,6 +3,8 @@
% for key, value in environ.items():
% if key not in ["wsgi.input", "wsgi.errors", "PATH"]:
<li><b>${key}</b>: ${value}</li>
% elif key == "wsgi.input":
<li><b>${key}</b>: ${value.read(environ.get("CONTENT_LENGTH", 0))}</li>
% endif
% endfor
</ul>


+ 1
- 1
toolserver/cookies.py View File

@@ -26,7 +26,7 @@ class _CookieManager(SimpleCookie):
def value_encode(self, value):
encoded = base64.b64encode(value.encode("utf8"))
quoted = super(_CookieManager, self).value_encode(encoded)[1]
return value, encoded
return value, quoted

@property
def path(self):


Loading…
Cancel
Save