Skip to content

Commit

Permalink
FIx linter errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fluxxcode authored and shawnchin committed Aug 6, 2024
1 parent 2800b19 commit 58ce256
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,10 @@ local default_ttl = module:get_option_number("proxybased_external_service_ttl",
local configured_services = module:get_option_array("proxybased_external_services", {});

local access = module:get_option_set("proxybased_external_service_access", {});
local host_header = module:get_option_string("proxybased_external_service_host_header", "Turn-Server"):gsub("%-", "_"):lower()
local host_header = module:get_option_string(
"proxybased_external_service_host_header",
"Turn-Server"
):gsub("%-", "_"):lower()

-- https://tools.ietf.org/html/draft-uberti-behave-turn-rest-00
local function behave_turn_rest_credentials(srv, item, secret)
Expand Down Expand Up @@ -159,8 +162,7 @@ function get_headers_bosh(event)
end

function get_host_from_http_headers(event)
local headers = nil

local headers
if event.origin.websocket_request ~= nil then
module:log("debug", "Detected websocket request");
headers = get_headers_ws(event);
Expand Down

0 comments on commit 58ce256

Please sign in to comment.