-rw-r--r-- | lib/consumer.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/consumer.cc b/lib/consumer.cc index 62bec71..66db7dd 100644 --- a/lib/consumer.cc +++ b/lib/consumer.cc | |||
@@ -335,25 +335,24 @@ namespace opkele { | |||
335 | server.assign(attrs,m2.begin(1),m2.length(1)); | 335 | server.assign(attrs,m2.begin(1),m2.length(1)); |
336 | if(!delegate.empty()) { | 336 | if(!delegate.empty()) { |
337 | gotit = true; | 337 | gotit = true; |
338 | break; | 338 | break; |
339 | } | 339 | } |
340 | }else if(rel=="openid.delegate") { | 340 | }else if(rel=="openid.delegate") { |
341 | delegate.assign(attrs,m2.begin(1),m2.length(1)); | 341 | delegate.assign(attrs,m2.begin(1),m2.length(1)); |
342 | if(!server.empty()) { | 342 | if(!server.empty()) { |
343 | gotit = true; | 343 | gotit = true; |
344 | break; | 344 | break; |
345 | } | 345 | } |
346 | } | 346 | } |
347 | if(ns==string::npos) break; | ||
348 | } | 347 | } |
349 | } | 348 | } |
350 | if(server.empty()) | 349 | if(server.empty()) |
351 | throw failed_assertion(OPKELE_CP_ "The location has no openid.server declaration"); | 350 | throw failed_assertion(OPKELE_CP_ "The location has no openid.server declaration"); |
352 | } | 351 | } |
353 | 352 | ||
354 | assoc_t consumer_t::find_assoc(const string& /* server */) { | 353 | assoc_t consumer_t::find_assoc(const string& /* server */) { |
355 | throw failed_lookup(OPKELE_CP_ "no find_assoc() provided"); | 354 | throw failed_lookup(OPKELE_CP_ "no find_assoc() provided"); |
356 | } | 355 | } |
357 | 356 | ||
358 | string consumer_t::normalize(const string& url) { | 357 | string consumer_t::normalize(const string& url) { |
359 | string rv = url; | 358 | string rv = url; |