summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2025-07-02 15:24:40 +0500
committerilotterytea <iltsu@alright.party>2025-07-02 15:24:40 +0500
commit9d4b5d297db107af69a4a3d298508bb5f5d37286 (patch)
tree3a6c320c7b7177ac8e30050a73f4065d03dfb5a0
parent4206dd79626773b3f667e9af0ca007aa35a7c6f3 (diff)
upd: support charset utf-8 mimetypes
-rw-r--r--bot/src/commands/lua.hpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/bot/src/commands/lua.hpp b/bot/src/commands/lua.hpp
index 422f79e..2516bab 100644
--- a/bot/src/commands/lua.hpp
+++ b/bot/src/commands/lua.hpp
@@ -114,7 +114,9 @@ namespace bot::command::lua {
std::string url = request.message.value();
- std::vector<std::string> mimeTypes = {"text/plain", "text/x-lua"};
+ std::vector<std::string> mimeTypes = {"text/plain", "text/x-lua",
+ "text/plain; charset=utf-8",
+ "text/x-lua; charset=utf-8"};
cpr::Response response = cpr::Get(
cpr::Url{url},