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:
@@ -17,7 +17,6 @@ struct Request
|
||||
std::string body;
|
||||
};
|
||||
|
||||
# define MAX_FILESIZE 1000000 // (1Mo)
|
||||
class Client
|
||||
{
|
||||
public:
|
||||
@@ -29,8 +28,6 @@ class Client
|
||||
int fd;
|
||||
std::string raw_request;
|
||||
std::string response;
|
||||
static char buf[MAX_FILESIZE+1];
|
||||
size_t body_size;
|
||||
unsigned int status;
|
||||
listen_socket *lsocket;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user