fix exception when no content length is specified and POST body is empty string