diff options
Diffstat (limited to 'gemini/gemtext')
-rw-r--r-- | gemini/gemtext/sub.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gemini/gemtext/sub.go b/gemini/gemtext/sub.go index 5030291..269695f 100644 --- a/gemini/gemtext/sub.go +++ b/gemini/gemtext/sub.go @@ -41,7 +41,7 @@ func GmisubToAtom(doc Document, location url.URL, out io.Writer) error { // gemini://gemini.circumlunar.space/docs/companion/subscription.gmi var AutoAtom = types.Middleware(func(h types.Handler) types.Handler { return types.HandlerFunc(func(ctx context.Context, request *types.Request) *types.Response { - if !strings.HasSuffix(request.Path, ".atom") { + if request.Scheme != "gemini" || !strings.HasSuffix(request.Path, ".atom") { return h.Handle(ctx, request) } |