File tree 1 file changed +7
-1
lines changed
1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -163,13 +163,18 @@ bool StartWebServer() {
163
163
}
164
164
LOG_INFO << " CGI environment variables set: " << cgiEnvironment;
165
165
166
- // Mongoose web server.
166
+ // Listening ports
167
167
std::string listening_ports;
168
168
if (ipAddress == " *" ) {
169
169
listening_ports = port;
170
170
} else {
171
171
listening_ports = ipAddress + " :" + port;
172
172
}
173
+
174
+ // Extra mime types
175
+ std::string extra_mime_types = (*appSettings)[" web_server" ][" extra_mime_types" ];
176
+
177
+ // Mongoose C options
173
178
const char * options[] = {
174
179
" document_root" , wwwDirectory.c_str (),
175
180
" listening_ports" , listening_ports.c_str (),
@@ -179,6 +184,7 @@ bool StartWebServer() {
179
184
" cgi_environment" , cgiEnvironment.c_str (),
180
185
" 404_handler" , _404_handler.c_str (),
181
186
" hide_files_patterns" , hide_files_patterns.c_str (),
187
+ " extra_mime_types" , extra_mime_types.c_str (),
182
188
NULL
183
189
};
184
190
You can’t perform that action at this time.
0 commit comments