mirror of
https://github.com/SFML/SFML.git
synced 2024-11-28 22:31:09 +08:00
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
This commit is contained in:
parent
4f6b3637d7
commit
e2ddadb395
@ -51,14 +51,12 @@ namespace sf
|
|||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
/// Default constructor
|
/// Default constructor
|
||||||
////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////
|
||||||
Http::Request::Request(Method RequestMethod, const std::string& URI, const std::string& Body) :
|
Http::Request::Request(Method RequestMethod, const std::string& URI, const std::string& Body)
|
||||||
myMethod (RequestMethod),
|
|
||||||
myURI (URI),
|
|
||||||
myMajorVersion(1),
|
|
||||||
myMinorVersion(0),
|
|
||||||
myBody (Body)
|
|
||||||
{
|
{
|
||||||
|
SetMethod(RequestMethod);
|
||||||
|
SetURI(URI);
|
||||||
|
SetHttpVersion(1, 0);
|
||||||
|
SetBody(Body);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user