progrium/pyjwt — pull request #48 by skion (2014-11-26 14:25:14+00:00)
Title: Let `header()` support unicode input, like `decode()`.

When invoking `header()` before `decode()` on the same JWT, you could run into `DecodeError("Invalid header encoding")` if the JWT input was unicode. This aligns `header()` with `decode()`.