From e577b79d67247b5e5ecd63c137c9380d7066f410 Mon Sep 17 00:00:00 2001 From: Timur Ismagilov Date: Sat, 6 Aug 2022 12:44:19 +0500 Subject: [PATCH] Fix /text/ for media hyphae --- web/readers.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/readers.go b/web/readers.go index d8ff2b3..e059b56 100644 --- a/web/readers.go +++ b/web/readers.go @@ -151,7 +151,7 @@ func handlerText(w http.ResponseWriter, rq *http.Request) { util.PrepareRq(rq) hyphaName := util.HyphaNameFromRq(rq, "text") switch h := hyphae.ByName(hyphaName).(type) { - case *hyphae.TextualHypha: + case hyphae.ExistingHypha: log.Println("Serving", h.TextFilePath()) w.Header().Set("Content-Type", "text/plain; charset=utf-8") http.ServeFile(w, rq, h.TextFilePath())