fixed response.append(body) problem.
+ File I/O working but maybe not perfect (it seems complicated to do it with std::filebuf) + fixed Content-Type for unknown file extension
This commit is contained in:
@@ -1,13 +1,11 @@
|
||||
|
||||
#include "Client.hpp"
|
||||
|
||||
char Client::buf[MAX_FILESIZE+1];
|
||||
|
||||
/*********************************************
|
||||
* COPLIENS
|
||||
*********************************************/
|
||||
|
||||
Client::Client() : fd(0), body_size(0), status(0) {
|
||||
Client::Client() : fd(0), status(0) {
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -56,7 +54,6 @@ void Client::clear()
|
||||
clear_request();
|
||||
raw_request.clear();
|
||||
response.clear();
|
||||
body_size = 0;
|
||||
status = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user