Merge branch 'master' into headless-api

This commit is contained in:
boatbomber 2022-09-30 17:13:38 -07:00 • committed by GitHub
commit 7e7583bcfc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -264,7 +264,9 @@ function App:startSession(host: string?, port: string?)
twoWaySync = Settings:get("twoWaySync"),
}
local baseUrl = string.format("http://%s:%s", host :: string, port :: string)
local baseUrl = if string.find(host, "^https?://")
then string.format("%s:%s", host, port)
else string.format("http://%s:%s", host, port)
local apiContext = ApiContext.new(baseUrl)
local serveSession = ServeSession.new({