Skip to content

将 flag / type 请求参数用于判断客户端类型并优先于 User-Agent#112

Open
QwQlinkie wants to merge 1 commit intoperfect-panel:masterfrom
QwQlink:qwqlink-main
Open

将 flag / type 请求参数用于判断客户端类型并优先于 User-Agent#112
QwQlinkie wants to merge 1 commit intoperfect-panel:masterfrom
QwQlink:qwqlink-main

Conversation

@QwQlinkie
Copy link
Copy Markdown

feat(subscribe): enhance client identification logic by prioritizing flag/type over User-Agent

习惯上在订阅 URl 中添加 flagtype 参数用于客户端判断, internal/handler/subscribe.go:25-26 中解析了相关参数但从未用于客户端选择, internal/logic/subscribe/subscribeLogic.go:49-74 中的客户端匹配逻辑只看了 User-Agent 请求头,不看任何请求参数

此 PR 在 subscribeLogic.go 中完善了客户端匹配逻辑,将 FlagType 也用于客户端判断,并优先于 User-Agent

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant