🐛 Fix cannot read upstreams settings from querystring
All checks were successful
release-nightly / build-docker (push) Successful in 1m8s

This commit is contained in:
LittleSheep 2023-12-14 21:24:17 +08:00
parent 8e2ec23856
commit 996e52a5f9

View File

@ -35,7 +35,7 @@ func (v *UpstreamConfig) GetType() string {
func (v *UpstreamConfig) GetRawURI() (string, url.Values) {
uri := strings.SplitN(v.URI, "://", 2)[1]
data := strings.SplitN(uri, "?", 2)
qs, _ := url.ParseQuery(uri)
qs, _ := url.ParseQuery(data[1])
return data[0], qs
}