Compare commits

..

No commits in common. "b86e58cddfbab15be1ae8e436cabad5fe1b77217" and "5b05588375dcd169e149b8840bce6ba79ad3be22" have entirely different histories.

5 changed files with 2 additions and 21 deletions

View file

@ -1,9 +1,5 @@
# 更新日志 # 更新日志
3.5.2 - 2025-06-11
---
- CHANGE: 加入MPL 2.0许可证, 项目转为双重许可
3.5.1 - 2025-06-09 3.5.1 - 2025-06-09
--- ---
- CHANGE: 大幅优化`Matcher`的性能, 实现零分配, 大幅提升性能; 单次操作时间: `254.3 ns/op` => `29.59 ns/op` - CHANGE: 大幅优化`Matcher`的性能, 实现零分配, 大幅提升性能; 单次操作时间: `254.3 ns/op` => `29.59 ns/op`

View file

@ -99,7 +99,7 @@ WJQserver Studio 开源许可证
* 8.3 版本更新: 授权方可能会发布本许可证的修订版本或新版本。您可以选择是继续使用本许可证的旧版本还是选择适用新版本。 * 8.3 版本更新: 授权方可能会发布本许可证的修订版本或新版本。您可以选择是继续使用本许可证的旧版本还是选择适用新版本。
WJQserver Studio Open Source License WJQserver Studio Open Source License
Version v2.1 Version v2.0
Copyright © WJQserver Studio 2024 Copyright © WJQserver Studio 2024

View file

@ -1 +1 @@
3.5.2 3.5.1

View file

@ -92,8 +92,6 @@ func HealthcheckHandler(c *app.RequestContext, ctx context.Context) {
c.Response.Header.Set("Content-Type", "application/json") c.Response.Header.Set("Content-Type", "application/json")
c.JSON(200, (map[string]interface{}{ c.JSON(200, (map[string]interface{}{
"Status": "OK", "Status": "OK",
"Repo": "WJQSERVER-STUDIO/GHProxy",
"Author": "WJQSERVER-STUDIO",
})) }))
} }
@ -101,8 +99,6 @@ func VersionHandler(c *app.RequestContext, ctx context.Context, version string)
c.Response.Header.Set("Content-Type", "application/json") c.Response.Header.Set("Content-Type", "application/json")
c.JSON(200, (map[string]interface{}{ c.JSON(200, (map[string]interface{}{
"Version": version, "Version": version,
"Repo": "WJQSERVER-STUDIO/GHProxy",
"Author": "WJQSERVER-STUDIO",
})) }))
} }

11
main.go
View file

@ -402,16 +402,6 @@ func init() {
} }
} }
var viaString string = "WJQSERVER-STUDIO/GHProxy"
func viaHeader() app.HandlerFunc {
return func(ctx context.Context, c *app.RequestContext) {
protoVersion := "1.1"
c.Header("Via", protoVersion+" "+viaString)
c.Next(ctx)
}
}
func main() { func main() {
if showVersion || showHelp { if showVersion || showHelp {
return return
@ -460,7 +450,6 @@ func main() {
r.Use(recovery.Recovery()) // Recovery中间件 r.Use(recovery.Recovery()) // Recovery中间件
r.Use(loggin.Middleware()) // log中间件 r.Use(loggin.Middleware()) // log中间件
r.Use(viaHeader())
setupApi(cfg, r, version) setupApi(cfg, r, version)
setupPages(cfg, r) setupPages(cfg, r)