Skip to content

Commit

Permalink
Remove jws.WithHeaders (#1227)
Browse files Browse the repository at this point in the history
Co-authored-by: Daisuke Maki <lestrrat+github@github.com>
  • Loading branch information
lestrrat and Daisuke Maki authored Nov 1, 2024
1 parent 82cf1b5 commit a2c9e32
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions jws/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,8 @@ import (
"github.com/lestrrat-go/option"
)

type identHeaders struct{}
type identInsecureNoSignature struct{}

// WithHeaders is deprecated. See WithProtectedHeaders to specify
// headers to include in the jws signature.
//
// Using this option has NO EFFECT.
func WithHeaders(h Headers) SignOption {
return &signOption{option.New(identHeaders{}, h)}
}

// WithJSON specifies that the result of `jws.Sign()` is serialized in
// JSON format.
//
Expand Down

0 comments on commit a2c9e32

Please sign in to comment.