diff --git a/lib/jwt/encode.rb b/lib/jwt/encode.rb index a3b0c888..973f5b2f 100644 --- a/lib/jwt/encode.rb +++ b/lib/jwt/encode.rb @@ -37,7 +37,7 @@ def encoded_header_and_payload end def encode_header - encode_data(@headers.merge(@algorithm.header(signing_key: @key).merge)) + encode_data(@headers.merge(@algorithm.header(signing_key: @key))) end def encode_payload