Merge pull request #258 from remakeelectric/accept-multi-chunk-post
authorJo-Philipp Wich <jow@openwrt.org>
Sat, 22 Nov 2014 18:21:26 +0000 (19:21 +0100)
committerJo-Philipp Wich <jow@openwrt.org>
Sat, 22 Nov 2014 18:21:26 +0000 (19:21 +0100)
luci.http.protocol: Allow posts to contain more than a single chunk

modules/base/luasrc/http/protocol.lua

index 0d41550..6431b04 100644 (file)
@@ -658,7 +658,7 @@ function parse_message_body( src, msg, filecb )
 
                        if not ok and err then
                                return nil, err
-                       elseif not err then
+                       elseif not ok then -- eof
                                return true
                        end
                end