Skip to content

Commit

Permalink
Made website loading more reliable
Browse files Browse the repository at this point in the history
  • Loading branch information
Chi-EEE committed Oct 13, 2023
1 parent c84413c commit 775abc1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion Car-Application.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,10 @@
"set": "cpp",
"unordered_set": "cpp",
"codecvt": "cpp",
"fstream": "cpp"
"fstream": "cpp",
"source_location": "cpp",
"shared_mutex": "cpp",
"cinttypes": "cpp"
}
}
}
2 changes: 1 addition & 1 deletion backend/src/controller/AbstractController.cc
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class AbstractController : public oatpp::web::server::api::ApiController
file.seekg(0, std::ios::beg);
file.read(memblock.data(), size);
file.close();
return controller->createResponse(status, memblock.data());
return controller->createResponse(status, std::string(memblock.begin(), memblock.end()));
}
else
{
Expand Down

0 comments on commit 775abc1

Please sign in to comment.