From b953dcde9c98d366f945226f5ae843b99ef66c05 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Fri, 7 Dec 2012 17:56:38 +0530 Subject: [PATCH] if no cookies, do not print cookies in handler --- webnotes/handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webnotes/handler.py b/webnotes/handler.py index 14ff0afbd0..57d16e5681 100755 --- a/webnotes/handler.py +++ b/webnotes/handler.py @@ -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=(',',':')))