luci.http.protocol: Allow posts to contain more than a single chunk
[project/luci.git] / 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
 
                        if not ok and err then
                                return nil, err
-                       elseif not err then
+                       elseif not ok then -- eof
                                return true
                        end
                end
                                return true
                        end
                end