-rw-r--r-- | lib/discovery.cc | 1 |
1 files changed, 1 insertions, 0 deletions
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 { | |||
104 | "XRI resolution failed with '"+status_string+"' message",status_code); | 104 | "XRI resolution failed with '"+status_string+"' message",status_code); |
105 | if(result.xrd.canonical_ids.empty()) | 105 | if(result.xrd.canonical_ids.empty()) |
106 | throw opkele::failed_discovery(OPKELE_CP_ "No CanonicalID for XRI identity found"); | 106 | throw opkele::failed_discovery(OPKELE_CP_ "No CanonicalID for XRI identity found"); |
107 | result.canonicalized_id = result.xrd.canonical_ids.begin()->second; | ||
107 | }else{ | 108 | }else{ |
108 | result.xri_identity = false; | 109 | result.xri_identity = false; |
109 | if(id.find("://")==string::npos) | 110 | if(id.find("://")==string::npos) |