Disconnect the server after sending http reponse

This is the link to the additional question if anyone is interested in following through:
“Content-Length” Header in Django Framework for IoT Application