-
Notifications
You must be signed in to change notification settings - Fork 8.9k
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
fix get the latest release tag error #2374
Conversation
https://developer.github.com/v3/#user-agent-required
官方文档的描述,curl会自带默认的User-Agent,所以其实也没必要另外再加个。 |
https://developer.github.com/v3/#current-version
按照推荐使用以下代码测试60次(不进行认证,每个IP每小时只能使用api60次)
全都能返回正常的json格式,当然使用-H "Accept: application/json"也通过了测试,唯一的区别是在返回头中X-GitHub-Media-Type: github.v3,而不是X-GitHub-Media-Type: github.v3; format=json,这个应该也没太大影响。 |
我记得我更新了,但看起来好像没有,只能等待下一次了 |
#2373