Add proper Content-Length based off of the request body's length

Make sure to use serialized_payload length as Content-Length if the request has a body