From d75a2c77da9354e99e90f28d8a6df138e7e99419 Mon Sep 17 00:00:00 2001 From: ed Date: Sat, 6 Jul 2024 16:55:15 +0200 Subject: [PATCH] og: fix viewing readmes --- copyparty/httpcli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/copyparty/httpcli.py b/copyparty/httpcli.py index d03ad3e0..41722116 100644 --- a/copyparty/httpcli.py +++ b/copyparty/httpcli.py @@ -4314,7 +4314,7 @@ class HttpCli(object): if not use_filekey: return self.tx_404() - if add_og: + if add_og and not abspath.lower().endswith(".md"): if og_ua or self.host not in self.headers.get("referer", ""): self.vpath, og_fn = vsplit(self.vpath) vpath = self.vpath