Browse Source

cjson is no longer available, use sjson now

Godzil 6 years ago
parent
commit
eb5db4f0f6
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/http/file-api.lua

+ 1 - 1
src/http/file-api.lua

@@ -17,7 +17,7 @@ return function (connection, req, args)
                filelist[n] = s
             end
          end
-         ok, json = pcall(cjson.encode, filelist)
+         ok, json = pcall(sjson.encode, filelist)
          if ok then
             --print(json)
             connection:send(json)