self.send_header("Content-length", str(len(response)))
self.end_headers()
self.wfile.write(response)
-
- # shut down the connection
self.wfile.flush()
+ # close db connection
+ self.api.close_dbsession()
+ # shut down the connection
self.connection.shutdown() # Modified here!
##