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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user