Mercurial > hg > orthanc
comparison Core/Toolbox.cpp @ 2856:49b152059472
added mime type for WASM
author | am@osimis.io |
---|---|
date | Wed, 03 Oct 2018 14:59:52 +0200 |
parents | e0476e8cb73d |
children | 668d5ad73c74 |
comparison
equal
deleted
inserted
replaced
2855:706da802f1e3 | 2856:49b152059472 |
---|---|
341 contentType = "application/javascript"; | 341 contentType = "application/javascript"; |
342 else if (!strcmp(extension, "json")) | 342 else if (!strcmp(extension, "json")) |
343 contentType = "application/json"; | 343 contentType = "application/json"; |
344 else if (!strcmp(extension, "pdf")) | 344 else if (!strcmp(extension, "pdf")) |
345 contentType = "application/pdf"; | 345 contentType = "application/pdf"; |
346 else if (!strcmp(extension, "wasm")) | |
347 contentType = "application/wasm"; | |
346 | 348 |
347 // Images types | 349 // Images types |
348 else if (!strcmp(extension, "jpg") || !strcmp(extension, "jpeg")) | 350 else if (!strcmp(extension, "jpg") || !strcmp(extension, "jpeg")) |
349 contentType = "image/jpeg"; | 351 contentType = "image/jpeg"; |
350 else if (!strcmp(extension, "gif")) | 352 else if (!strcmp(extension, "gif")) |