fix(docker): agent and socket-proxy docker events not flushing with modified reverse proxy handler

This commit is contained in:
yusing
2025-05-23 22:20:32 +08:00
parent f1e204f7fd
commit df193a42fc
8 changed files with 663 additions and 34 deletions

View File

@@ -9,7 +9,7 @@ import (
. "github.com/yusing/go-proxy/socketproxy/pkg"
)
func mockDockerSocketHandler() http.HandlerFunc {
func mockDockerSocketHandler(_ string) http.HandlerFunc {
return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
w.WriteHeader(http.StatusOK)
w.Write([]byte("mock docker response"))