Skip to content

Commit 1c035b2

Browse files
author
Robert
committedJan 24, 2017
use param, not claim in setHeader()
1 parent 4f8603e commit 1c035b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -162,8 +162,8 @@ Jwt.prototype.setClaim = function setClaim(claim, value) {
162162
this.body[claim] = value;
163163
return this;
164164
};
165-
Jwt.prototype.setHeader = function setHeader(claim, value) {
166-
this.header[claim] = value;
165+
Jwt.prototype.setHeader = function setHeader(param, value) {
166+
this.header[param] = value;
167167
return this;
168168
};
169169
Jwt.prototype.setJti = function setJti(jti) {

0 commit comments

Comments
 (0)