ringcentral/ringcentral-js

Do not specify default "Accept" header

tylerlong opened this issue · 1 comments

if (!findHeaderName('Accept', init.headers)) {
init.headers.Accept = Client._jsonContentType;
}

There is no need to specify it. Because the server knows what content type to return. There is no ambiguity.

And since we specify json as the accept type, binary downloading stops working recently (due to a recent change on server side)

lines removed