mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
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 '/'
|
||||
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