diff options
author | Jeff Lindsay <progrium@gmail.com> | 2011-06-29 14:16:06 -0700 |
---|---|---|
committer | Jeff Lindsay <progrium@gmail.com> | 2011-06-29 14:16:06 -0700 |
commit | 082a66b1f2336829a4a6d0313ade668a71b5e1d3 (patch) | |
tree | be3d3e1a6e095bd5de357488b53b6aec3b8b7ee2 | |
parent | 6fc8c26b54ebb7f5e81a14b5b65fa09995fe1cb1 (diff) | |
download | php-jwt-082a66b1f2336829a4a6d0313ade668a71b5e1d3.zip php-jwt-082a66b1f2336829a4a6d0313ade668a71b5e1d3.tar.gz php-jwt-082a66b1f2336829a4a6d0313ade668a71b5e1d3.tar.bz2 |
This is more correct according to the spec.
-rw-r--r-- | JWT.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -53,7 +53,7 @@ class JWT */ public static function encode($payload, $key, $algo = 'HS256') { - $header = array('typ' => 'jwt', 'alg' => $algo); + $header = array('typ' => 'JWT', 'alg' => $algo); $segments = array(); $segments[] = JWT::urlsafeB64Encode(JWT::jsonEncode($header)); |