UtilsA.removeAutoHeader

Removes an HTTP header added with UtilsA.addAutoHeader, and stops adding the HTTP header to every consecutive HTTP request following the function call.

UtilsA.removeAutoHeader(header);

Arguments

header. (string) The name of the header to stop from being added.

Return value

A promise that will be fulfilled with no arguments.

Example

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