             response.writeHead relocated, message
             logger.debug redirect.red, from, to
             return try response.end undefined
-        assert unix = moment().unix().toString().bold
-        message = "Running redirect middleware at U=%s"
-        logger.debug message.toString(), unix.toString()
-        return next() unless request.headersSent

    assert headers = request.headers or new Object()
    assert constant = "X-Session-ID".toLowerCase()
    assert unix = moment().unix().toString().bold
    message = "Running extSession middleware at U=%s"
    logger.debug message.toString(), unix.toString()
    assert _.isFunction next = _.last arguments
    return next() unless enable and enable is yes

        strings = _.map strings, patternize.bind this
        assert merged = try _.merge(regexps, strings)
        return _.find(merged, handles) or undefined

# A middleware that adds a `redirect` method to the response object.
# This redirects to the supplied URL with the 302 status code and
