mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-08-02 18:48:49 -04:00
This reverts commit eaa7200734.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user