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:
@@ -105,7 +105,10 @@ void Webserv::_init_http_status_map()
|
||||
|
||||
void Webserv::_init_mime_types_map()
|
||||
{
|
||||
_mime_types[""] = "application/octet-stream";
|
||||
/*
|
||||
** From : http://nginx.org/en/docs/http/ngx_http_core_module.html#types
|
||||
*/
|
||||
_mime_types[""] = MIME_TYPE_DEFAULT;
|
||||
|
||||
_mime_types["html"] = "text/html";
|
||||
_mime_types["htm"] = "text/html";
|
||||
|
||||
Reference in New Issue
Block a user