pstuifzand/ekster

View on GitHub
pkg/websub/signature.go

Summary

Maintainability
A
35 mins
Test Coverage

Function ValidateHubSignature has 5 return statements (exceeds 4 allowed).
Open

func ValidateHubSignature(sig string, feedContent, secret []byte) error {
    parts := strings.Split(sig, "=")

    if len(parts) != 2 {
        return errors.New("signature format is not like sha1=signature")
Severity: Major
Found in pkg/websub/signature.go - About 35 mins to fix

There are no issues that match your filters.

Category
Status