From 228fc507a712e3187e9c83da6834f200d772a612 Mon Sep 17 00:00:00 2001 From: Frederic R Date: Thu, 2 Feb 2023 00:37:38 +0000 Subject: [PATCH] Revert "#319 Fix OVH Invalid Signature (#414)" (#426) This reverts commit eaa720073427e3c801a9c5eb8a2312869736f244. --- internal/settings/providers/ovh/headers.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/settings/providers/ovh/headers.go b/internal/settings/providers/ovh/headers.go index 53a0764f..2ba37cfa 100644 --- a/internal/settings/providers/ovh/headers.go +++ b/internal/settings/providers/ovh/headers.go @@ -20,8 +20,8 @@ func (p *Provider) setHeaderAuth(header http.Header, timestamp int64, header.Add("X-Ovh-Consumer", p.consumerKey) sha1Sum := sha1.Sum([]byte( - p.appSecret + "+" + p.consumerKey + "+" + httpMethod + "+" + - url.String() + "+" + string(body) + "+" + strconv.Itoa(int(timestamp)), + p.appSecret + "+" + p.consumerKey + "+" + httpMethod + "+" + p.apiURL.String() + "+" + + url.Path + "+" + string(body) + "+" + strconv.Itoa(int(timestamp)), )) header.Add("X-Ovh-Signature", fmt.Sprintf("$1$%x", sha1Sum))