diff options
author | Neuman Vong <neuman@ashmoremusic.com> | 2011-06-29 14:18:31 -0700 |
---|---|---|
committer | Neuman Vong <neuman@ashmoremusic.com> | 2011-06-29 14:18:31 -0700 |
commit | c8e1b4d2d14f2d22450e08db09def8e5123267ca (patch) | |
tree | be3d3e1a6e095bd5de357488b53b6aec3b8b7ee2 | |
parent | 6fc8c26b54ebb7f5e81a14b5b65fa09995fe1cb1 (diff) | |
parent | 082a66b1f2336829a4a6d0313ade668a71b5e1d3 (diff) | |
download | php-jwt-c8e1b4d2d14f2d22450e08db09def8e5123267ca.zip php-jwt-c8e1b4d2d14f2d22450e08db09def8e5123267ca.tar.gz php-jwt-c8e1b4d2d14f2d22450e08db09def8e5123267ca.tar.bz2 |
Merge pull request #1 from progrium/patch-1
Spec says to uppercase JWT for typ
-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)); |