def do_POST(self):
        post_data = self.rfile.read(int(self.headers['Content-Length']))
        self._profile_json.update(json.loads(post_data))
        self._send_response(
            200, headers=(('Content-type', '%s; charset=utf-8' % 'text/json'),
                          ('Content-Length', len(post_data))))
Should show proper handling of an empty file.
dataset/ETHPy150Open nvdv/vprof/vprof/stats_server.py/StatsHandler.do_POST--crossover with--dataset/ETHPy150Open kenfar/DataGristle/scripts/tests/test_gristle_slicer_cmd.py/TestEmptyFile.test_empty_file