diff --git a/src/Namshi/JOSE/JWS.php b/src/Namshi/JOSE/JWS.php
index <HASH>..<HASH> 100755
--- a/src/Namshi/JOSE/JWS.php
+++ b/src/Namshi/JOSE/JWS.php
@@ -105,6 +105,7 @@ class JWS extends JWT
                 $jws = new self($header['alg'], isset($header['typ']) ? $header['typ'] : null);
                 
                 $jws->setEncoder($encoder)
+                    ->setHeader($header)
                     ->setPayload($payload)
                     ->setEncodedSignature($parts[2]);
Explicitly set header in JWS::load

When using the constructor, the header is ordered in its own order,
not according to how the provided token may ahve be ordered. This
then causes signature validation to fail because the header has
been reordered from what the original token provided.