diff options
| author | ilotterytea <iltsu@alright.party> | 2025-07-02 15:24:40 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2025-07-02 15:24:40 +0500 |
| commit | 9d4b5d297db107af69a4a3d298508bb5f5d37286 (patch) | |
| tree | 3a6c320c7b7177ac8e30050a73f4065d03dfb5a0 | |
| parent | 4206dd79626773b3f667e9af0ca007aa35a7c6f3 (diff) | |
upd: support charset utf-8 mimetypes
| -rw-r--r-- | bot/src/commands/lua.hpp | 4 |
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}, |
