lib/collection/request.js
function (toRemove, options) {
        toRemove = _.isString(toRemove) ? toRemove : toRemove.key;

        options = options || {};

        if (!toRemove) { // Nothing to remove :(
            return;
        }

        options.ignoreCase && (toRemove = toRemove.toLowerCase());

        this.headers.remove(function (header) {
            var key = options.ignoreCase ? header.key.toLowerCase() : header.key;
            return key === toRemove;
        });
    }
function (toRemove, options) {
        toRemove = _.isString(toRemove) ? toRemove : toRemove.key;

        options = options || {};

        if (!toRemove) { // Nothing to remove :(
            return;
        }

        options.ignoreCase && (toRemove = toRemove.toLowerCase());

        this.headers.remove(function (header) {
            var key = options.ignoreCase ? header.key.toLowerCase() : header.key;
            return key === toRemove;
        });
    }
function ( toRemove , options ) { toRemove = _ . isString ( toRemove ) ? toRemove : toRemove . key ; options = options || { } ; if ( ! toRemove ) { // Nothing to remove :( return ; } options . ignoreCase && ( toRemove = toRemove . toLowerCase ( ) ) ; this . headers . remove ( function ( header ) { var key = options . ignoreCase ? header . key . toLowerCase ( ) : header . key ; return key === toRemove ; } ) ; }
Removes a header from the request.

@param {String|Header} toRemove A header object to remove, or a string containing the header key.
@param {Object} options
@param {Boolean} options.ignoreCase If set to true, ignores case while removing the header.
Removes a header from the request .