Use iterator and correct string insert
This commit is contained in:
parent
863fef0246
commit
2bca810025
@ -79,7 +79,7 @@ void Http::Request::setUri(const std::string& uri)
|
|||||||
|
|
||||||
// Make sure it starts with a '/'
|
// Make sure it starts with a '/'
|
||||||
if (m_uri.empty() || (m_uri[0] != '/'))
|
if (m_uri.empty() || (m_uri[0] != '/'))
|
||||||
m_uri.insert(0, "/");
|
m_uri.insert(m_uri.begin(), '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user