* luci/libs/http: fix two typos in http.protocol
This commit is contained in:
parent
079f606bf9
commit
89764da368
1 changed files with 3 additions and 3 deletions
|
@ -316,7 +316,7 @@ process_states['mime-headers'] = function( msg, chunk, filecb )
|
||||||
-- Treat as form field
|
-- Treat as form field
|
||||||
else
|
else
|
||||||
__initval( msg.params, field )
|
__initval( msg.params, field )
|
||||||
|
|
||||||
msg._mimecallback = function(chunk,eof)
|
msg._mimecallback = function(chunk,eof)
|
||||||
__appendval( msg.params, field, chunk )
|
__appendval( msg.params, field, chunk )
|
||||||
end
|
end
|
||||||
|
@ -622,7 +622,7 @@ function mimedecode_message_body( source, msg, filecb )
|
||||||
|
|
||||||
-- XXX: we schould propably keep the maximum buffer size in sync with
|
-- XXX: we schould propably keep the maximum buffer size in sync with
|
||||||
-- the blocksize of our original source... but doesn't really matter
|
-- 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 ""
|
return ""
|
||||||
else
|
else
|
||||||
return source()
|
return source()
|
||||||
|
@ -660,7 +660,7 @@ function urldecode_message_body( source, msg )
|
||||||
-- Create a throttling LTN12 source
|
-- Create a throttling LTN12 source
|
||||||
-- See explaination in mimedecode_message_body().
|
-- See explaination in mimedecode_message_body().
|
||||||
local tsrc = function()
|
local tsrc = function()
|
||||||
if msg._urldecbuffer ~= null and #msg._urldecbuffer > 0 then
|
if msg._urldecbuffer ~= nil and #msg._urldecbuffer > 0 then
|
||||||
return ""
|
return ""
|
||||||
else
|
else
|
||||||
return source()
|
return source()
|
||||||
|
|
Loading…
Reference in a new issue