libs/sgi-uhttpd: do not assume env.CONTENT_LENGTH to be a number
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 28 Mar 2014 16:37:03 +0000 (16:37 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 28 Mar 2014 16:37:03 +0000 (16:37 +0000)
commit0efb19876b0fe85aabdbb1634c8d5001e2cd2c65
tree0ada0d6c761cbc6ac4483848e9259858bdf5ce89
parentde5da20be1ed099c8d3ea77f26ac5ae65e94d4e9
libs/sgi-uhttpd: do not assume env.CONTENT_LENGTH to be a number

env.CONTENT_LENGTH as passed by uhttpd might be a string, so explicitely
convert it using tonumber().

Issue has been reported by Catalin Patulea <cat@vv.carleton.ca>

Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
libs/sgi-uhttpd/luasrc/sgi/uhttpd.lua