added visual feedback to website and added a response in the server

This commit is contained in:
Luna 2025-05-22 23:02:02 +02:00
parent 2b77a349fa
commit 2e9d90a0ae
3 changed files with 34 additions and 2 deletions

View file

@ -5,6 +5,7 @@
#include <print>
#include <fstream>
#include <map>
#include <filesystem>
int atoi_newline(const char *data)
{
@ -337,6 +338,7 @@ int main()
char *end = search_substring(chunk, final_boundary.c_str(), file_size);
write_file(filename, chunk, end);
free(chunk);
netlib::send_packet(std::make_tuple(std::string("HTTP/1.1 200 OK\r\n")), user);
}
else
{