Add body in function write_handler