Skip to content

Commit

Permalink
Fix issue MiniProfiler#80: Can not view results-index
Browse files Browse the repository at this point in the history
  • Loading branch information
ogun committed Apr 27, 2015
1 parent b579c02 commit fb91a88
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions StackExchange.Profiling/MiniProfilerHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public void ProcessRequest(HttpContext context)
case "jquery.1.7.1":
case "jquery.tmpl":
case "list":
output = NotFound(context);
output = Includes(context, path);
break;
case "includes":
output = Includes(context, path);
Expand Down Expand Up @@ -197,10 +197,10 @@ private static string Index(HttpContext context)
return new StringBuilder()
.AppendLine("<html><head>")
.AppendLine("<title>List of profiling sessions</title>")
//.AppendFormat("<script id='mini-profiler' data-ids='' type='text/javascript' src='{0}includes.js?v={1}'></script>{2}", path, MiniProfiler.Settings.Version, Environment.NewLine)
//.AppendFormat("<link href='{0}includes.css?v={1}' rel='stylesheet' type='text/css'>{2}", path, MiniProfiler.Settings.Version, Environment.NewLine)
//.AppendFormat("<script type='text/javascript'>MiniProfiler.init({{path: '{0}', version: '{1}'}})</script>{2}", path, MiniProfiler.Settings.Version, Environment.NewLine)
.AppendLine("</head><body>This function is deprecated and currently not working. Pull Requests for fixing it are welcome.</body></html>")
.AppendFormat("<script id='mini-profiler' data-ids='' type='text/javascript' src='{0}includes.js?v={1}'></script>{2}", path, MiniProfiler.Settings.Version, Environment.NewLine)
.AppendFormat("<link href='{0}includes.css?v={1}' rel='stylesheet' type='text/css'>{2}", path, MiniProfiler.Settings.Version, Environment.NewLine)
.AppendFormat("<script type='text/javascript' src='{0}includes.js?v={1}'></script>{2}", path, MiniProfiler.Settings.Version, Environment.NewLine)
.AppendFormat("<script type='text/javascript'>MiniProfiler.list.init({{path: '{0}', version: '{1}'}})</script>{2}", path, MiniProfiler.Settings.Version, Environment.NewLine)
.ToString();
}

Expand Down

0 comments on commit fb91a88

Please sign in to comment.