Fix wsgi client with legacy oauth