Fix content length and add keep-alive