**Describe the bug** If you do not pass the "token" string after Bearer in `Authorization` header, it will result in an unhandled exception. **To Reproduce** Use `django-oauth-toolkit` and setup as a Django middleware. Define any route and register in `urls.py` **Expected behavior** <!-- A clear and concise description of what you expected to happen. --> **Version** 3.0.1 Tested with - [x] I have tested with the latest published release and it's still a problem. - [x] I have tested with the master branch and it's still a problem. **Additional context** My request header looks like this:  I think problem is in [here](https://github.com/jazzband/django-oauth-toolkit/blob/90d7300c06be80e565c6557f0b8f260968748634/oauth2_provider/middleware.py#L56) It should check if there is space before splitting `authheader` by space. Wondering, if you are expecting a PR.