Backstage
    Preparing search index...

    Function parseGerritJsonResponse

    • Parse the json response from Gerrit and strip the magic prefix.

      Parameters

      • response: Response

        An API response.

      Returns Promise<unknown>

      To prevent against XSSI attacks the JSON response body from Gerrit starts with a magic prefix that must be stripped before it can be fed to a JSON parser.