Exemplo n.º 1
0
        public void InstallFilter(HttpContextBase context)
        {
            RRTracer.Trace("Entering Module");
            var request = context.Request;

            if (context.Response.ContentType != "text/html" ||
                request.RawUrl == "/favicon.ico" ||
                IsInRRContentDirectory(context))
            {
                return;
            }

            ResponseFilter.InstallFilter(context);
        }
Exemplo n.º 2
0
        public void InstallFilter(HttpContextBase context)
        {
            RRTracer.Trace("Entering Module");
            var uri = context.Request.Url;

            if ((context.Response.ContentType != "text/html" &&
                 context.Response.ContentType != "application/xhtml+xml") ||
                uri.AbsolutePath == "/favicon.ico" ||
                IsInRRContentDirectory(uri))
            {
                return;
            }

            ResponseFilter.InstallFilter(context);
        }