fix: ci by bumping reva

This commit is contained in:
Florian Schade
2024-09-05 15:39:39 +02:00
parent 5ab53b2474
commit 99c0212d3b
5 changed files with 8 additions and 8 deletions
@@ -100,10 +100,12 @@ func (h *tokenHandler) Generate(w http.ResponseWriter, r *http.Request) {
return
}
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK) // FIXME this should be a 201 created status. Tracked in https://github.com/cs3org/reva/issues/4838
tknRes := h.prepareGenerateTokenResponse(genTokenRes.GetInviteToken())
if err := json.NewEncoder(w).Encode(tknRes); err != nil {
reqres.WriteError(w, r, reqres.APIErrorServerError, "error marshalling token data", err)
return
}
if h.eventStream != nil {
@@ -122,8 +124,6 @@ func (h *tokenHandler) Generate(w http.ResponseWriter, r *http.Request) {
}
}
w.Header().Set("Content-Type", "application/json")
w.WriteHeader(http.StatusOK)
}
// generateRequest is the request body for the Generate endpoint.
+1 -1
View File
@@ -104,7 +104,7 @@ func normalizeDomain(d string) (string, error) {
return "", err
}
return u.Hostname(), nil
return u.Host, nil
}
func (a *authorizer) GetInfoByDomain(_ context.Context, domain string) (*ocmprovider.ProviderInfo, error) {