From 9d4b5d297db107af69a4a3d298508bb5f5d37286 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Wed, 2 Jul 2025 15:24:40 +0500 Subject: upd: support charset utf-8 mimetypes --- bot/src/commands/lua.hpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'bot') 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 mimeTypes = {"text/plain", "text/x-lua"}; + std::vector 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}, -- cgit v1.2.3