Fix encode_base64 fixer

Minetest's encode_base64() doesn't add padding.
This commit is contained in:
luk3yx 2020-11-01 18:56:15 +13:00
parent 1a55f7da6c
commit 534ebf6615
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ if token then
local auth = minetest.encode_base64(raw)
headers = {
-- minetest.encode_base64() doesn't add padding
'Authorization: Basic ' .. auth .. ('='):rep(4 - #auth % 4),
'Authorization: Basic ' .. auth .. ('='):rep((4 - #auth) % 4),
'Content-Type: application/json',
'X-Force-OK: true'
}