From e2ddadb39584712b9859d83436fe741f2c3ccd62 Mon Sep 17 00:00:00 2001 From: LaurentGom Date: Sat, 4 Jul 2009 16:44:36 +0000 Subject: [PATCH] Fixed ending slash not added to a Http::Request URI when specified in the constructor git-svn-id: https://sfml.svn.sourceforge.net/svnroot/sfml/trunk@1156 4e206d99-4929-0410-ac5d-dfc041789085 --- src/SFML/Network/Http.cpp | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/src/SFML/Network/Http.cpp b/src/SFML/Network/Http.cpp index 64793406d..76e2b7a63 100644 --- a/src/SFML/Network/Http.cpp +++ b/src/SFML/Network/Http.cpp @@ -51,14 +51,12 @@ namespace sf //////////////////////////////////////////////////////////// /// Default constructor //////////////////////////////////////////////////////////// -Http::Request::Request(Method RequestMethod, const std::string& URI, const std::string& Body) : -myMethod (RequestMethod), -myURI (URI), -myMajorVersion(1), -myMinorVersion(0), -myBody (Body) +Http::Request::Request(Method RequestMethod, const std::string& URI, const std::string& Body) { - + SetMethod(RequestMethod); + SetURI(URI); + SetHttpVersion(1, 0); + SetBody(Body); }