token-check fix auth header, improve invalid token exception

Push event #152.9 failed

  • Ran for
AMD64
Ruby: jruby-head
Git
This is the configuration for all of build #152, including this job
The .travis.yml file used for this job is not available
Build Config
{
  "rvm": [
    "1.8.7",
    "1.9.2",
    "1.9.3",
    "2.0.0",
    "jruby-18mode",
    "jruby-19mode",
    "rbx-18mode",
    "rbx-19mode",
    "jruby-head",
    "ree"
  ],
  "matrix": {
    "allow_failures": [
      {
        "rvm": "jruby-18mode"
      },
      {
        "rvm": "jruby-19mode"
      },
      {
        "rvm": "jruby-head"
      }
    ]
  },
  "language": "ruby"
}