diff --git a/changelog/unreleased/ocm-content-type.md b/changelog/unreleased/ocm-content-type.md new file mode 100644 index 0000000000..cf170bc756 --- /dev/null +++ b/changelog/unreleased/ocm-content-type.md @@ -0,0 +1,6 @@ +Enhancement: fix content-type for OCM sharing + +This fix change the content type to just +"application/json" + +https://github.com/cs3org/reva/pull/3313 diff --git a/pkg/ocm/share/sender/sender.go b/pkg/ocm/share/sender/sender.go index 5cee734bad..3e2dd965ae 100644 --- a/pkg/ocm/share/sender/sender.go +++ b/pkg/ocm/share/sender/sender.go @@ -68,7 +68,7 @@ func Send(requestBodyMap map[string]interface{}, pi *ocmprovider.ProviderInfo) e if err != nil { return errors.Wrap(err, "sender: error framing post request") } - req.Header.Set("Content-Type", "application/json; param=value") + req.Header.Set("Content-Type", "application/json") client := rhttp.GetHTTPClient( rhttp.Timeout(5 * time.Second), )