mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-04-22 19:19:18 -05:00
fix: ci by bumping reva
This commit is contained in:
+3
-3
@@ -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
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user