def http_request(self, method, url, **kwargs):
        response = self.http.request_encode_url(method, url, **kwargs)

        if response.getheader('content-type', '') in 'application/json':
            return self._http_check_json(response)

        return self._http_check(response)
dataset/ETHPy150Open wtolson/gnsq/gnsq/httpclient.py/HTTPClient.http_request/swapped operands of `in`