Skip to content

Commit

Permalink
Decode empty JSON arrays correctly (#324)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexsong93 authored and mhamann committed Oct 10, 2018
1 parent 5921317 commit 3616abf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ RUN apk --update add \
&& rm -rf /var/cache/apk/*

# openresty build
ENV OPENRESTY_VERSION=1.13.6.1 \
ENV OPENRESTY_VERSION=1.13.6.2 \
PCRE_VERSION=8.37 \
TEST_NGINX_VERSION=0.24 \
OPM_VERSION=0.0.3 \
Expand Down
3 changes: 3 additions & 0 deletions scripts/lua/routing.lua
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
-- Used to dynamically handle nginx routing based on an object containing implementation details

local cjson = require "cjson"
if (cjson.decode_array_with_array_mt ~= nil) then
cjson.decode_array_with_array_mt(true)
end
local url = require "url"
local utils = require "lib/utils"
local request = require "lib/request"
Expand Down

0 comments on commit 3616abf

Please # to comment.