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); }