diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2008-07-14 17:21:45 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2008-07-14 17:21:45 +0000 |
commit | 89764da3687815bc8e3d2d540ccd5329b5e351c9 (patch) | |
tree | 590d22f299d688cfd6b066d6bf7512580e2b7c8a | |
parent | 079f606bf90e951a7d1dea46968f6676fa698f5c (diff) |
* luci/libs/http: fix two typos in http.protocol
-rw-r--r-- | libs/http/luasrc/http/protocol.lua | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/http/luasrc/http/protocol.lua b/libs/http/luasrc/http/protocol.lua index 22135741cd..7459f8d1fc 100644 --- a/libs/http/luasrc/http/protocol.lua +++ b/libs/http/luasrc/http/protocol.lua @@ -316,7 +316,7 @@ process_states['mime-headers'] = function( msg, chunk, filecb ) -- Treat as form field else __initval( msg.params, field ) - + msg._mimecallback = function(chunk,eof) __appendval( msg.params, field, chunk ) end @@ -622,7 +622,7 @@ function mimedecode_message_body( source, msg, filecb ) -- XXX: we schould propably keep the maximum buffer size in sync with -- the blocksize of our original source... but doesn't really matter - if msg._mimebuffer ~= null and #msg._mimebuffer > 256 then + if msg._mimebuffer ~= nil and #msg._mimebuffer > 256 then return "" else return source() @@ -660,7 +660,7 @@ function urldecode_message_body( source, msg ) -- Create a throttling LTN12 source -- See explaination in mimedecode_message_body(). local tsrc = function() - if msg._urldecbuffer ~= null and #msg._urldecbuffer > 0 then + if msg._urldecbuffer ~= nil and #msg._urldecbuffer > 0 then return "" else return source() |