diff --git a/src/uri.cpp b/src/uri.cpp index 16a26acb1ea8883f3be0a41b3bf1072b63ebee37..c7f69b63a0b4241f0b9c4630224b40d3532e4d2e 100644 --- a/src/uri.cpp +++ b/src/uri.cpp @@ -343,7 +343,7 @@ URI::ProtocolHint URI::protocolHint() const : ( //Step two : Check RING protocol, is has already been detected at this point - (d_ptr->m_HeaderType == URI::SchemeType::RING && isHash) || (isHash && d_ptr->m_Userinfo.size() == 40) + (d_ptr->m_HeaderType == URI::SchemeType::RING && isHash) || isHash ? URI::ProtocolHint::RING : (