You forgot to set the content-length header.