Include signature algorithm in header field

Co-authored-by: Lauris BH <lauris@nix.lv>
This commit is contained in:
Michelangelo Morrillo
2020-05-21 15:34:57 +02:00
committed by GitHub
parent 7f2efea728
commit 770ffb857e
+1 -1
View File
@@ -128,7 +128,7 @@ func (p Plugin) Exec() error {
sha := hex.EncodeToString(h.Sum(nil))
// append signature to headers
req.Header.Set("X-Drone-Signature", sha)
req.Header.Set("X-Drone-Signature", fmt.Sprintf("sha256=%s", sha))
}
for _, value := range p.Config.Headers {