summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeff Lindsay <progrium@gmail.com>2011-06-29 14:16:06 -0700
committerJeff Lindsay <progrium@gmail.com>2011-06-29 14:16:06 -0700
commit082a66b1f2336829a4a6d0313ade668a71b5e1d3 (patch)
treebe3d3e1a6e095bd5de357488b53b6aec3b8b7ee2
parent6fc8c26b54ebb7f5e81a14b5b65fa09995fe1cb1 (diff)
downloadphp-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.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/JWT.php b/JWT.php
index 2bfb147..0cf98fd 100644
--- a/JWT.php
+++ b/JWT.php
@@ -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));