From 0fd394c99ffd07ab07b91d507ac56d2c2dcfc143 Mon Sep 17 00:00:00 2001 From: NewName Date: Mon, 7 Apr 2025 14:12:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96githubassets=E5=8C=B9?= =?UTF-8?q?=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ghproxy/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ghproxy/main.go b/ghproxy/main.go index 824cc55..7e78d20 100644 --- a/ghproxy/main.go +++ b/ghproxy/main.go @@ -32,7 +32,7 @@ var ( regexp.MustCompile(`^(?:https?://)?huggingface\.co(?:/spaces)?/([^/]+)/(.+)$`), regexp.MustCompile(`^(?:https?://)?cdn-lfs\.hf\.co(?:/spaces)?/([^/]+)/([^/]+)(?:/(.*))?$`), regexp.MustCompile(`^(?:https?://)?download\.docker\.com/([^/]+)/.*\.(tgz|zip)$`), - regexp.MustCompile(`^(?:https?://)?([a-zA-Z0-9-]+\.)*githubassets\.com/([^/]+)/.+?$`), + regexp.MustCompile(`^(?:https?://)?(github|opengraph)\.githubassets\.com/([^/]+)/.+?$`), } httpClient *http.Client config *Config