{"comment":{"url":"https://api.github.com/repos/rembo10/headphones/comments/12009984","html_url":"https://github.com/rembo10/headphones/commit/3e81c4f3b6a3219fba7e986acf059300df8f3225#commitcomment-12009984","id":12009984,"user":{"login":"basilfx","id":815976,"avatar_url":"https://avatars.githubusercontent.com/u/815976?v=3","gravatar_id":"","url":"https://api.github.com/users/basilfx","html_url":"https://github.com/basilfx","followers_url":"https://api.github.com/users/basilfx/followers","following_url":"https://api.github.com/users/basilfx/following{/other_user}","gists_url":"https://api.github.com/users/basilfx/gists{/gist_id}","starred_url":"https://api.github.com/users/basilfx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basilfx/subscriptions","organizations_url":"https://api.github.com/users/basilfx/orgs","repos_url":"https://api.github.com/users/basilfx/repos","events_url":"https://api.github.com/users/basilfx/events{/privacy}","received_events_url":"https://api.github.com/users/basilfx/received_events","type":"User","site_admin":false},"position":null,"line":null,"path":"","commit_id":"3e81c4f3b6a3219fba7e986acf059300df8f3225","created_at":"2015-07-06T07:21:46Z","updated_at":"2015-07-06T07:21:46Z","body":"`response.headers.get(\"content-type\")` will return a string if set, so basically `\"text/html\" in response.headers.get(\"content-type\")` will always return `True` if some part of the string contains that substring.\r\n\r\nI think I made this mistake in `request.py`, sorry :-P "}}