Dashboard › cli › prepareHeaders preserves SDK headers
01a08c1d-c7b7-7e58-955e-64ef8f25b548Chose preserving caller headers and mutating the same Headers object across retries over rebuilding only authentication headers because SDK calls own Content-Type, and replacing them causes HTTP 415; unauthorized retry handling must also replace Authorization in place. prepareHeaders() adds only Authorization and User-Agent; apiRequestToRegion() explicitly sends JSON, while SDK and raw requests retain their own body-specific headers.