'event_response' -> 'obj' (copypaste error)
This commit is contained in:
parent
3a0183eb03
commit
fefb9d71fb
1 changed files with 2 additions and 3 deletions
|
@ -20,10 +20,9 @@ class Response(object):
|
||||||
self._data += data.encode("utf8")
|
self._data += data.encode("utf8")
|
||||||
def write_json(self, obj):
|
def write_json(self, obj):
|
||||||
if self._compact:
|
if self._compact:
|
||||||
data = json.dumps(event_response, sort_keys=True,
|
data = json.dumps(obj, sort_keys=True, separators=(",", ":"))
|
||||||
separators=(",", ":"))
|
|
||||||
else:
|
else:
|
||||||
data = json.dumps(event_response, sort_keys=True, indent=4)
|
data = json.dumps(obj, sort_keys=True, indent=4)
|
||||||
self._data += data.encode("utf8")
|
self._data += data.encode("utf8")
|
||||||
|
|
||||||
def set_header(self, key: str, value: str):
|
def set_header(self, key: str, value: str):
|
||||||
|
|
Loading…
Reference in a new issue