diff --git a/plugins/exporter.koplugin/base.lua b/plugins/exporter.koplugin/base.lua index 2a69dbaa2..de4dbc6dd 100644 --- a/plugins/exporter.koplugin/base.lua +++ b/plugins/exporter.koplugin/base.lua @@ -201,7 +201,7 @@ function BaseExporter:makeJsonRequest(endpoint, method, body, headers) "no response from server") end - response, err = rapidjson.decode(sink[1]) + response, err = rapidjson.decode(table.concat(sink)) if not response then return nil, string.format(msg_failed, "unable to decode server response" .. err)