исправил тестовое состояние, исправил логику работы TDMA-морды, мелкие исправления в именовании параметров

This commit is contained in:
2025-01-20 10:39:18 +03:00
parent 6464cda437
commit 8813488df8
7 changed files with 41 additions and 56 deletions

View File

@@ -3,10 +3,10 @@
#include <fstream>
#include <utility>
static void loadFile(const std::string& path, std::vector<char>& content) {
void http::resource::loadFile(const std::string& path, std::vector<char>& content) {
std::ifstream is(path, std::ios::in | std::ios::binary);
if (!is) {
throw std::runtime_error("File not found");
throw std::runtime_error("File not found " + path);
}
content.clear();