summaryrefslogtreecommitdiffhomepage
path: root/collections
diff options
context:
space:
mode:
authorFlorian Eckert <fe@dev.tdt.de>2020-07-29 09:30:04 +0200
committerFlorian Eckert <fe@dev.tdt.de>2020-07-29 09:30:04 +0200
commit141857a12adf18c62b4b8cae775870aa88374f02 (patch)
tree0c4a83a59a4070825be5266ab7d6e88bae4f874e /collections
parent02af2e6ecad06762edb4322031da031213591882 (diff)
luci-lib-docker: add options argument to send_http_socket
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
Diffstat (limited to 'collections')
-rw-r--r--collections/luci-lib-docker/luasrc/docker.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/collections/luci-lib-docker/luasrc/docker.lua b/collections/luci-lib-docker/luasrc/docker.lua
index 6b14626e5..642465370 100644
--- a/collections/luci-lib-docker/luasrc/docker.lua
+++ b/collections/luci-lib-docker/luasrc/docker.lua
@@ -113,7 +113,7 @@ local open_socket = function(req_options)
end
end
-local send_http_socket = function(docker_socket, req_header, req_body, callback)
+local send_http_socket = function(options, docker_socket, req_header, req_body, callback)
if docker_socket:send(req_header) == 0 then
return {
headers={
@@ -288,7 +288,7 @@ local call_docker = function(options, http_method, api_group, api_action, name_o
local docker_socket = open_socket(req_options)
if docker_socket then
- return send_http_socket(docker_socket, req_header, req_body, callback)
+ return send_http_socket(options, docker_socket, req_header, req_body, callback)
else
return {
headers = {