MIME types map for correct Content-type header

+ append body to string cause encoding problem, so added temp buf in Client.
This commit is contained in:
LuckyLaszlo
2022-08-05 04:24:15 +02:00
parent 3102253092
commit e596d8f093
19 changed files with 432 additions and 312 deletions

View File

@@ -1,6 +1,8 @@
#include "Client.hpp"
char Client::buf[MAX_FILESIZE+1];
/*********************************************
* COPLIENS
*********************************************/
@@ -54,6 +56,7 @@ void Client::clear()
clear_request();
raw_request.clear();
response.clear();
body_size = 0;
status = 0;
}