mirror of
https://onedev.site.tesses.net/tesses-framework
synced 2026-02-09 00:05:46 +00:00
Fix for mac
This commit is contained in:
@@ -157,7 +157,6 @@ namespace Tesses::Framework::Http
|
|||||||
HttpResponse::HttpResponse(std::shared_ptr<Stream> strm)
|
HttpResponse::HttpResponse(std::shared_ptr<Stream> strm)
|
||||||
{
|
{
|
||||||
this->handleStrm=nullptr;
|
this->handleStrm=nullptr;
|
||||||
this->owns=owns;
|
|
||||||
StreamReader reader(strm);
|
StreamReader reader(strm);
|
||||||
std::string statusLine;
|
std::string statusLine;
|
||||||
if(!reader.ReadLine(statusLine)) return;
|
if(!reader.ReadLine(statusLine)) return;
|
||||||
@@ -184,7 +183,6 @@ namespace Tesses::Framework::Http
|
|||||||
|
|
||||||
HttpResponse::HttpResponse(HttpRequest& req)
|
HttpResponse::HttpResponse(HttpRequest& req)
|
||||||
{
|
{
|
||||||
this->owns=true;
|
|
||||||
this->handleStrm = nullptr;
|
this->handleStrm = nullptr;
|
||||||
|
|
||||||
std::string url = req.url;
|
std::string url = req.url;
|
||||||
|
|||||||
@@ -613,7 +613,7 @@ CreateProcessW(
|
|||||||
}
|
}
|
||||||
if(!this->workingDirectory.empty())
|
if(!this->workingDirectory.empty())
|
||||||
Tesses::Framework::Filesystem::VFSPath::SetAbsoluteCurrentDirectory(this->workingDirectory);
|
Tesses::Framework::Filesystem::VFSPath::SetAbsoluteCurrentDirectory(this->workingDirectory);
|
||||||
execvpe(this->name.c_str(),argv,envp);
|
execve(this->name.c_str(),argv,envp);
|
||||||
exit(1);
|
exit(1);
|
||||||
}
|
}
|
||||||
p->pid = pid;
|
p->pid = pid;
|
||||||
|
|||||||
Reference in New Issue
Block a user