From c8a22127d5089fc82cd0a2fc3c8f7a78f04161cb Mon Sep 17 00:00:00 2001 From: VayuDev <26022837+VayuDev@users.noreply.github.com> Date: Fri, 26 Jul 2019 18:42:19 +0200 Subject: [PATCH] Added missing wasm ContentType (#198) --- lib/inc/drogon/HttpTypes.h | 1 + lib/src/HttpUtils.cc | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/lib/inc/drogon/HttpTypes.h b/lib/inc/drogon/HttpTypes.h index 0e101270..010ec0ed 100644 --- a/lib/inc/drogon/HttpTypes.h +++ b/lib/inc/drogon/HttpTypes.h @@ -82,6 +82,7 @@ enum ContentType CT_TEXT_XML, CT_APPLICATION_XML, CT_TEXT_XSL, + CT_APPLICATION_WASM, CT_APPLICATION_OCTET_STREAM, CT_APPLICATION_X_FONT_TRUETYPE, CT_APPLICATION_X_FONT_OPENTYPE, diff --git a/lib/src/HttpUtils.cc b/lib/src/HttpUtils.cc index 6d15e9e7..0632707c 100644 --- a/lib/src/HttpUtils.cc +++ b/lib/src/HttpUtils.cc @@ -136,6 +136,11 @@ const string_view &webContentTypeToString(ContentType contenttype) static string_view sv = "Content-Type: image/icns\r\n"; return sv; } + case CT_APPLICATION_WASM: + { + static string_view sv = "Content-Type: application/wasm\r\n"; + return sv; + } default: case CT_TEXT_PLAIN: {