luci/modules/luci-base/luasrc/http
Karl Palsson 2a77918b02 http.protocol: Support filehandlers for unhandled encodings
The setfilehandler() functions used for mime and url encoded message
bodies all operate with a signature of fh(meta, chunk, eof), but for
unhandled encodings, the callback was directly assigned to the sink
function, which has a signature of snk(chunk).  Insert a wrapper to
properly generate the EOF flag, and include a stub "meta" block
providing a virtual "name" and also the original client provided
Content-Type header, to possibly help with taking alternative actions in
the file handler.

The sink function created for raw content decoding also used the wrong
signature for the sink function.

Signed-off-by: Karl Palsson <karlp@remake.is>
2015-08-18 17:52:48 +02:00
..
protocol Move inline documentation into separate files. 2015-01-29 16:26:46 +01:00
protocol.lua http.protocol: Support filehandlers for unhandled encodings 2015-08-18 17:52:48 +02:00
protocol.luadoc Move inline documentation into separate files. 2015-01-29 16:26:46 +01:00