* luci/libs/http: fix wrong varname in http.protocol
authorJo-Philipp Wich <jow@openwrt.org>
Fri, 18 Jul 2008 12:02:18 +0000 (12:02 +0000)
committerJo-Philipp Wich <jow@openwrt.org>
Fri, 18 Jul 2008 12:02:18 +0000 (12:02 +0000)
libs/http/luasrc/http/protocol.lua

index 87c76b8a29d956fd8676fb5199c9de9b4e5bf6cb..b035387810688037914b393be0ae7bb4bc1c6fe5 100644 (file)
@@ -480,7 +480,7 @@ function mimedecode_message_body( src, msg, filecb )
                                if spos then
                                        local predata = data:sub( 1, spos - 1 )
 
-                                       if hdr then
+                                       if inhdr then
                                                predata, eof = parse_headers( predata, field )
 
                                                if not eof then