mirror of https://github.com/OpenRCT2/OpenRCT2.git
Ensure HTTP request variables lives till it is used (#7744)
Solves https://www.reddit.com/r/openrct2/comments/8uftdh/
This commit is contained in:
parent
fe76c807aa
commit
13224104e4
|
@ -101,10 +101,10 @@ Response Do(const Request & req)
|
||||||
std::runtime_error("Failed to initialize curl");
|
std::runtime_error("Failed to initialize curl");
|
||||||
|
|
||||||
Response res;
|
Response res;
|
||||||
|
WriteThis wt;
|
||||||
|
|
||||||
if (req.method == Method::POST || req.method == Method::PUT)
|
if (req.method == Method::POST || req.method == Method::PUT)
|
||||||
{
|
{
|
||||||
WriteThis wt;
|
|
||||||
wt.readptr = req.body.c_str();
|
wt.readptr = req.body.c_str();
|
||||||
wt.sizeleft = req.body.size();
|
wt.sizeleft = req.body.size();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue