mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-30 12:13:20 -04:00
chore(webfinger): Simplify weird Query parameter extraction loop
This commit is contained in:
committed by
Ralf Haferkamp
parent
daeae1f443
commit
24aaeb46ba
@@ -125,12 +125,7 @@ func WebfingerHandler(service svc.Service) func(w http.ResponseWriter, r *http.R
|
||||
return
|
||||
}
|
||||
|
||||
rels := make([]string, 0)
|
||||
for k, v := range r.URL.Query() {
|
||||
if k == "rel" {
|
||||
rels = append(rels, v...)
|
||||
}
|
||||
}
|
||||
rels := r.URL.Query()["rel"]
|
||||
|
||||
jrd, err := service.Webfinger(ctx, queryTarget, rels)
|
||||
if errors.Is(err, serviceErrors.ErrNotFound) {
|
||||
|
||||
Reference in New Issue
Block a user