From ead622d95e5eda4acac71b600d4a20192ace3600 Mon Sep 17 00:00:00 2001 From: putyy Date: Fri, 1 Aug 2025 14:07:28 +0800 Subject: [PATCH] fix: qq plugin optimize --- core/plugins/plugin.qq.com.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/plugins/plugin.qq.com.go b/core/plugins/plugin.qq.com.go index 77e5c1a..3c8777c 100644 --- a/core/plugins/plugin.qq.com.go +++ b/core/plugins/plugin.qq.com.go @@ -53,6 +53,9 @@ func (p *QqPlugin) OnResponse(resp *http.Response, ctx *goproxy.ProxyCtx) *http. classify, _ := p.bridge.TypeSuffix(resp.Header.Get("Content-Type")) if classify == "video" && strings.HasSuffix(host, "finder.video.qq.com") { + if strings.Contains(resp.Request.Header.Get("Origin"), "mp.weixin.qq.com") { + return nil + } return resp }