Переглянути джерело

if no cookies, do not print cookies in handler

version-14
Anand Doshi 12 роки тому
джерело
коміт
b953dcde9c
1 змінених файлів з 2 додано та 1 видалено
  1. +2
    -1
      webnotes/handler.py

+ 2
- 1
webnotes/handler.py Переглянути файл

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


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


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


Завантаження…
Відмінити
Зберегти