summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeuman Vong <neuman@ashmoremusic.com>2011-06-29 14:18:31 -0700
committerNeuman Vong <neuman@ashmoremusic.com>2011-06-29 14:18:31 -0700
commitc8e1b4d2d14f2d22450e08db09def8e5123267ca (patch)
treebe3d3e1a6e095bd5de357488b53b6aec3b8b7ee2
parent6fc8c26b54ebb7f5e81a14b5b65fa09995fe1cb1 (diff)
parent082a66b1f2336829a4a6d0313ade668a71b5e1d3 (diff)
downloadphp-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.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));