Use iterator and correct string insert

This commit is contained in:
Ralph Dworzanski 2022-09-28 19:17:51 +02:00 committed by Lukas Dürrenberger
parent 863fef0246
commit 2bca810025

View File

@ -79,7 +79,7 @@ void Http::Request::setUri(const std::string& uri)
// Make sure it starts with a '/'
if (m_uri.empty() || (m_uri[0] != '/'))
m_uri.insert(0, "/");
m_uri.insert(m_uri.begin(), '/');
}