B2G/gecko/services/common/rest.js
/**
   * Returns true if headers from the old channel should be
   * copied to the new channel. Invoked when a channel redirect
   * is in progress.
   */
Returns true if headers from the old channel should be
copied to the new channel. Invoked when a channel redirect
is in progress.
Returns true if headers from the old channel should be copied to the new channel . Invoked when a channel redirect is in progress .
function shouldCopyOnRedirect(oldChannel, newChannel, flags) {
    let isInternal = !!(flags & Ci.nsIChannelEventSink.REDIRECT_INTERNAL);
    let isSameURI  = newChannel.URI.equals(oldChannel.URI);
    this._log.debug("Channel redirect: " + oldChannel.URI.spec + ", " +
                    newChannel.URI.spec + ", internal = " + isInternal);
    return isInternal && isSameURI;
  }
function shouldCopyOnRedirect ( oldChannel , newChannel , flags ) { let isInternal = ! ! ( flags & Ci . nsIChannelEventSink . REDIRECT_INTERNAL ) ; let isSameURI = newChannel . URI . equals ( oldChannel . URI ) ; this . _log . debug ( "Channel redirect: " + oldChannel . URI . spec + ", " + newChannel . URI . spec + ", internal = " + isInternal ) ; return isInternal && isSameURI ; }
Returns true if headers from the old channel should be
 copied to the new channel.
Returns true if headers from the old channel should be copied to the new channel .