Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support HEAD request #434

Closed
wants to merge 1 commit into from
Closed

Conversation

ibigbug
Copy link

@ibigbug ibigbug commented Jan 6, 2022

/sub 支持 HEAD 请求

可以用来查询订阅信息,无需返回完整配置文件内容。

-> % curl -I http://127.0.0.1:25500/sub\?target\=clash\&url\=SUBSCRIPTION_URL&config\=https%3A%2F%2Fraw.git.ttaallkk.top%2FWatfaq%2Fchoc-configs%2Fmain%2Fconfigs%2Fbasic.ini\&emoji\=false\&list\=false\&tfo\=false\&scv\=false\&fdn\=false\&sort\=false\&new_name\=true
HTTP/1.1 200 OK
Subscription-UserInfo: upload=1726462333; download=28963911471; total=1073741824000; expire=1670245600
Content-Type: text/plain;charset=utf-8
Access-Control-Allow-Origin: *
Connection: close
Date: Thu, 06 Jan 2022 00:55:45 GMT

tindy2013 added a commit that referenced this pull request Mar 20, 2022
Fix incorrect order of tolerance and timeout field in custom group config.
Fix Content-Disposition header for better support on browsers.
Fix parsing of some Shadowrocket links.
Support HEAD request that only return Subscription-UserInfo (#434).
Add more detail info to crash report.
@tindy2013 tindy2013 closed this Apr 2, 2022
@ibigbug ibigbug deleted the support-head branch April 2, 2022 18:40
@SplitGemini
Copy link

有进度吗

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.

3 participants