Content-type patch is not needed, simplify connection closing, remove stray >.