debug: log when HTML handler serves a file
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -162,6 +162,7 @@ func handleFileViewRenderHTML(ctx *context.Context, fInfo *fileInfo) bool {
|
|||||||
if ctx.FormString("display") == "source" {
|
if ctx.FormString("display") == "source" {
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
log.Info("handleFileViewRenderHTML: serving as HTML for %s (display=%s)", ctx.Repo.TreePath, ctx.FormString("display"))
|
||||||
ctx.Data["IsHTMLFile"] = true
|
ctx.Data["IsHTMLFile"] = true
|
||||||
ctx.Data["HasSourceRenderedToggle"] = true
|
ctx.Data["HasSourceRenderedToggle"] = true
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user