[fix] Don't try to parse the response as json if header is not json
[fix] Don't try to parse the response as json if header is not json

In some instances this can cause hanging issues which is especially
the case for very large files.

Thanks to Kenan for finding this and doing thorough research on it!

Vaelor/python-mattermost-driver