From 2bca810025f1a79af2c741f18376ad76036e3e70 Mon Sep 17 00:00:00 2001 From: Ralph Dworzanski Date: Wed, 28 Sep 2022 19:17:51 +0200 Subject: [PATCH] Use iterator and correct string insert --- src/SFML/Network/Http.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/SFML/Network/Http.cpp b/src/SFML/Network/Http.cpp index 378967912..cdccbda2a 100644 --- a/src/SFML/Network/Http.cpp +++ b/src/SFML/Network/Http.cpp @@ -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(), '/'); }