u413-284-si / webserv

This project is about setting up a http web server, providing a static website.
MIT License
0 stars 0 forks source link

Allow location specific definition of MIME type mapping? #29

Open gwolf-011235 opened 3 months ago

gwolf-011235 commented 3 months ago

Nginx allows for custom mappings of file extensions to MIME types via directive: types One can also set the default MIME type via: default_type

Right now the MIME type mapping is fixed in the ResponseBuilder (creates a map on construction)

To make it variable we would need to