Skip to content
Commit d967bbaa authored by Jo-Philipp Wich's avatar Jo-Philipp Wich
Browse files

luci-base: http.uc: fix invoking Lua file upload callbacks



In case a callback is installed from Lua code, the received callback
argument is not a callable function but a resource object with a call
method. Attempts to call it will leading to a `Type error: left-hand
side is not a function` error.

To solve this issue, invoke the internally set filehandler instead
which wraps the resource if needed.

Fixes: #6067
Signed-off-by: default avatarJo-Philipp Wich <jo@mein.io>
parent da41c119
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment