mirror of
https://github.com/coolsnowwolf/luci
synced 2025-01-07 07:06:41 +08:00
fix: api 500 error (#13)
This commit is contained in:
parent
5481e0a7c2
commit
9f5b768ef7
@ -181,13 +181,18 @@ function Encoder.parse_iter(self, obj)
|
||||
end
|
||||
end
|
||||
|
||||
function Encoder.parse_udata(self, obj)
|
||||
return self:parse_string(tostring(obj))
|
||||
end
|
||||
|
||||
Encoder.parsers = {
|
||||
['nil'] = Encoder.parse_nil,
|
||||
['table'] = Encoder.parse_iter,
|
||||
['number'] = Encoder.parse_number,
|
||||
['string'] = Encoder.parse_string,
|
||||
['boolean'] = Encoder.parse_bool,
|
||||
['function'] = Encoder.parse_iter
|
||||
['function'] = Encoder.parse_iter,
|
||||
['userdata'] = Encoder.parse_udata,
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user