chore: include complete dc refactor implementation and audits
Release / Build & Release (push) Canceled after 0s

This commit is contained in:
kory
2026-10-02 13:23:30 +08:00
parent 192969d7f6
commit 38382d2486
22 changed files with 3022 additions and 8 deletions
+1 -6
View File
@@ -42,12 +42,7 @@ func (m Middleware) Handler(next http.Handler) http.Handler {
h := r.Header.Get("Authorization")
if strings.HasPrefix(h, "Bearer ") {
got = strings.TrimSpace(strings.TrimPrefix(h, "Bearer "))
} else if q := r.URL.Query().Get("token"); q != "" {
got = q
} else if q := r.URL.Query().Get("key"); q != "" {
got = q
} else if q := r.URL.Query().Get("api_key"); q != "" {
got = q
}
expected := m.Token