fixed content-length header

Unwrap optional paramsData to avoid header like `Content-Length: Optional(41)`