更改项目

This commit is contained in:
NewName
2025-05-20 22:16:34 +08:00
parent 45120a3300
commit 5a09358fd5
4 changed files with 6 additions and 9 deletions

View File

@@ -95,9 +95,6 @@ func main() {
c.File("./public/favicon.ico")
})
router.GET("/bj.svg", func(c *gin.Context) {
c.File("./public/bj.svg")
})
// 注册dockerhub搜索路由
RegisterSearchRoute(router)
// 创建GitHub文件下载专用的限流器
@@ -185,7 +182,7 @@ func proxy(c *gin.Context, u string) {
resp.Header.Del("Referrer-Policy")
resp.Header.Del("Strict-Transport-Security")
// 对于需要处理的shell文件我们使用chunked传输
// 对于需要处理的shell文件使用chunked传输
isShellFile := strings.HasSuffix(strings.ToLower(u), ".sh")
if isShellFile {
resp.Header.Del("Content-Length")