]> git.ipfire.org Git - thirdparty/starlette.git/commit
Allow None fore JSONResponse 556/head
authorMantas <sirexas@gmail.com>
Mon, 17 Jun 2019 14:20:08 +0000 (17:20 +0300)
committerMantas <sirexas@gmail.com>
Mon, 17 Jun 2019 14:20:08 +0000 (17:20 +0300)
commit1654a48fa4f6edf5a4fc5dab118ef53ae0ef2ead
tree648eef66ffced0435690c5a01853a2f7d6431e87
parentc5e40dcf03197fd0575de5ebd0cf6136ec0c0f3b
Allow None fore JSONResponse

Previously `JSONResponse(None)` rendered empty string, but it should be
'null' instead.

This change fixes it.
starlette/responses.py
tests/test_responses.py