Small fix on pull request #982

This commit is contained in:
Felipe Zimmerle 2016-01-06 14:36:30 -03:00
parent e38a468a26
commit 0762892368

View File

@ -288,7 +288,7 @@ int Assay::processURI(const char *uri, const char *protocol,
std::string parsedURI = uri;
// The more popular case is without domain
if (!m_uri_decoded.empty() && m_uri_decoded.at(1) != '/') {
if (!m_uri_decoded.empty() && m_uri_decoded.at(0) != '/') {
bool fullDomain = true;
size_t scheme = m_uri_decoded.find(":")+1;
if (scheme==std::string::npos) {