Check the detectResponseContentType flag before switching to binary content