JWT Header "type" not defined in draft-ietf-oauth-json-web-token-08

I tried to use the library to sign requests according to the draft-ietf-oauth-json-web-token-08 spec without success. Then  I realized that java-jwt is using the parameter "type" in the JWT Header but the correct name of the parameter is "typ" according to the specification. After changing this parameter the request where accepted by the backend service.