Skip to content

Commit 6c6028c

Browse files
authored
Fix: incorrect member name for unprotected JWS header (#67)
1 parent e1a73c2 commit 6c6028c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/jws/sign.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ var JWSSigner = function(cfg, signatories) {
145145
sig.protected = protect;
146146
}
147147
if (0 < lenUnprotect) {
148-
sig.unprotected = unprotect;
148+
sig.header = unprotect;
149149
}
150150
sig.signature = util.base64url.encode(result.mac);
151151
return sig;

0 commit comments

Comments
 (0)