mirror of
https://github.com/f4exb/sdrangel.git
synced 2025-09-03 13:47:50 -04:00
Support wasm files in web server.
This commit is contained in:
parent
395e9e0821
commit
29f7d534e5
@ -40,6 +40,7 @@ WebServer::WebServer(quint16 &port, QObject* parent) :
|
||||
m_mimeTypes.insert(".css", new MimeType("text/css"));
|
||||
m_mimeTypes.insert(".json", new MimeType("application/json"));
|
||||
m_mimeTypes.insert(".geojson", new MimeType("application/geo+json"));
|
||||
m_mimeTypes.insert(".wasm", new MimeType("application/wasm"));
|
||||
}
|
||||
|
||||
WebServer::~WebServer()
|
||||
@ -180,7 +181,7 @@ void WebServer::readClient()
|
||||
else if (m_files.contains(path))
|
||||
{
|
||||
// Path is a file held in memory
|
||||
sendFile(socket, m_files.value(path).data(), mimeType, path);
|
||||
sendFile(socket, m_files.value(path), mimeType, path);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user