Permalink
Browse files

Merge pull request #1 from progrium/patch-1

Spec says to uppercase JWT for typ
  • Loading branch information...
2 parents 6fc8c26 + 082a66b commit c8e1b4d2d14f2d22450e08db09def8e5123267ca @luciferous committed Jun 29, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 JWT.php
View
2 JWT.php
@@ -53,7 +53,7 @@ public static function decode($jwt, $key = null, $verify = true)
*/
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));

0 comments on commit c8e1b4d

Please sign in to comment.