mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-24 15:13:07 +01:00
Add backend unit tests
This commit is contained in:
17 files changed
+399
-283
No files matched your search
@@ -22,3 +22,12 @@ func Expansion(next http.Handler) http.Handler {
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
// GetExpandFromContext returns the Expansion setting
|
||||
func GetExpandFromContext(r *http.Request) []string {
|
||||
expand, ok := r.Context().Value(c.ExpansionCtxKey).([]string)
|
||||
if !ok {
|
||||
return nil
|
||||
}
|
||||
return expand
|
||||
}
|
||||
Reference in new issue
Block a user