(tenantID string, h http.Handler)
| 52 | } |
| 53 | |
| 54 | func injectAuthHeader(tenantID string, h http.Handler) http.Handler { |
| 55 | return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
| 56 | r.Header.Set("X-Scope-OrgID", tenantID) |
| 57 | h.ServeHTTP(w, r) |
| 58 | }) |
| 59 | } |