From a2c9e322306a70a387ea62d7ed790c4527db5eb1 Mon Sep 17 00:00:00 2001 From: lestrrat <49281+lestrrat@users.noreply.github.com> Date: Fri, 1 Nov 2024 14:29:05 +0900 Subject: [PATCH] Remove jws.WithHeaders (#1227) Co-authored-by: Daisuke Maki --- jws/options.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/jws/options.go b/jws/options.go index 2bc6cd0a..29801803 100644 --- a/jws/options.go +++ b/jws/options.go @@ -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. //