From 89c20f9a55607a200ad3d2c354e5cb2d0b624e55 Mon Sep 17 00:00:00 2001 From: Alexander Danilov Date: Thu, 16 Aug 2018 08:35:06 +0300 Subject: [PATCH] markdown: Fix 500 error (#2266) --- caddyhttp/markdown/markdown.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/caddyhttp/markdown/markdown.go b/caddyhttp/markdown/markdown.go index ace2d411..6294479e 100644 --- a/caddyhttp/markdown/markdown.go +++ b/caddyhttp/markdown/markdown.go @@ -142,7 +142,7 @@ func (md Markdown) ServeHTTP(w http.ResponseWriter, r *http.Request) (int, error case err == nil: // nop case os.IsPermission(err): return http.StatusForbidden, err - case os.IsExist(err): + case os.IsNotExist(err): return http.StatusNotFound, nil default: // did we run out of FD? return http.StatusInternalServerError, err