From 983d950679b02d424765148651d213f6c6c084b3 Mon Sep 17 00:00:00 2001 From: Hugo Gonzalez Labrador Date: Wed, 5 Oct 2022 16:38:04 +0200 Subject: [PATCH 1/2] ocm: fix content type verification --- pkg/ocm/share/sender/sender.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), ) From 4b17e1a0e9d4064fde40c912d8358278d1da77d6 Mon Sep 17 00:00:00 2001 From: Hugo Gonzalez Labrador Date: Wed, 5 Oct 2022 18:37:53 +0200 Subject: [PATCH 2/2] add changelog --- changelog/unreleased/ocm-content-type.md | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 changelog/unreleased/ocm-content-type.md 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