瀏覽代碼

Debug stuff

pull/24/head
Ben Kurtovic 12 年之前
父節點
當前提交
4ef8900b29
共有 2 個檔案被更改,包括 3 行新增1 行删除
  1. +2
    -0
      pages/debug.mako
  2. +1
    -1
      toolserver/cookies.py

+ 2
- 0
pages/debug.mako 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存