UtilsA.cleanupAutoHeaders

Removes all HTTP headers, and stops adding HTTP headers to every consecutive HTTP request that follows this function call.

UtilsA.cleanupAutoHeaders();

Arguments

None

Return value

A promise that will be fulfilled with no arguments.

Example

Copy code
UtilsA.cleanupAutoHeaders().then(function(){
  TCA.done();
}).catch(function (error) {
  TCA.doneWithError(error);
});