mirror of
https://github.com/openwrt/luci.git
synced 2025-12-21 21:24:35 +04:00
luci-lib-docker: add options argument to send_http_socket
Signed-off-by: Florian Eckert <fe@dev.tdt.de>
This commit is contained in:
@@ -113,7 +113,7 @@ local open_socket = function(req_options)
|
|||||||
end
|
end
|
||||||
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
|
if docker_socket:send(req_header) == 0 then
|
||||||
return {
|
return {
|
||||||
headers={
|
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)
|
local docker_socket = open_socket(req_options)
|
||||||
|
|
||||||
if docker_socket then
|
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
|
else
|
||||||
return {
|
return {
|
||||||
headers = {
|
headers = {
|
||||||
|
|||||||
Reference in New Issue
Block a user