added correct content-length header attr thanks @rootStar-lock - refs #198