Fix encode_base64 fixer
Minetest's encode_base64() doesn't add padding.
This commit is contained in:
parent
1a55f7da6c
commit
534ebf6615
2
core.lua
2
core.lua
|
@ -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'
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue