golang-filter use go 1.22

This commit is contained in:
johnlanni
2025-04-28 19:21:09 +08:00
parent 03b4144cff
commit e12feb9f57
5 changed files with 36 additions and 14 deletions

View File

@@ -21,6 +21,9 @@ type filter struct {
func (f *filter) DecodeHeaders(header api.RequestHeaderMap, endStream bool) api.StatusType {
url := common.NewRequestURL(header)
if url == nil {
return api.Continue
}
f.path = url.ParsedURL.Path
for _, server := range f.config.servers {