Browse Source

if no cookies, do not print cookies in handler

version-14
Anand Doshi 12 years ago
parent
commit
b953dcde9c
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      webnotes/handler.py

+ 2
- 1
webnotes/handler.py View File

@@ -263,7 +263,8 @@ def print_json():
add_cookies()

eprint("Content-Type: text/html; charset: utf-8")
print webnotes.cookies
if webnotes.cookies:
print webnotes.cookies

import json
print_zip(json.dumps(webnotes.response, default=json_handler, separators=(',',':')))


Loading…
Cancel
Save