From 9020dcc4b8187a9dd31c62dbe89041772b0f5473 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Sat, 29 Dec 2007 21:26:53 +0000 Subject: xri discovery fills in canonicalized_id for xri identities now Signed-off-by: Michael Krelin --- (limited to 'lib') diff --git a/lib/discovery.cc b/lib/discovery.cc index 3b184ee..bc7d6fb 100644 --- a/lib/discovery.cc +++ b/lib/discovery.cc @@ -104,6 +104,7 @@ namespace opkele { "XRI resolution failed with '"+status_string+"' message",status_code); if(result.xrd.canonical_ids.empty()) throw opkele::failed_discovery(OPKELE_CP_ "No CanonicalID for XRI identity found"); + result.canonicalized_id = result.xrd.canonical_ids.begin()->second; }else{ result.xri_identity = false; if(id.find("://")==string::npos) -- cgit v0.9.0.2