small adjustment
This commit is contained in:
1 parent
7d1ba07286
commit
83a59a5e9c
2 files changed
+5
-5
No files matched your search
@@ -196,7 +196,7 @@ function CreateSsdpResponse(ssdp as object, webServer as object) as string
|
||||
msg = `HTTP/1.1 200 OK\r\n`
|
||||
msg += `LOCATION: ${webServerAddress}/dial/${m.deviceId}/device-description.xml\r\n`
|
||||
msg += `ST: ${ssdp.headers.ST}\r\n`
|
||||
msg += `SERVER: Playlet Lib Dial Server ${libVersion} \r\n`
|
||||
msg += `SERVER: Playlet Dial Server ${libVersion} \r\n`
|
||||
msg += `USN: uuid:${m.deviceId}::${ssdp.headers.ST}\r\n`
|
||||
msg += `CACHE-CONTROL: no-cache, no-store, max-age=0, must-revalidate\r\n`
|
||||
msg += `EXT: \r\n`
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace Http
|
||||
m.routes.push({ method: "DELETE", path: `/dial/${m.deviceId}/YouTube/run`, router: m, func: "CloseChannel" })
|
||||
end function
|
||||
|
||||
' @get("/dial/device-description.xml")
|
||||
' @get("/dial/:device-id/device-description.xml")
|
||||
function GetDialManifest(context as object) as boolean
|
||||
response = context.response
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace Http
|
||||
return true
|
||||
end function
|
||||
|
||||
' @get("/dial/YouTube")
|
||||
' @get("/dial/:device-id/YouTube")
|
||||
function GetDialYouTube(context as object) as boolean
|
||||
response = context.response
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace Http
|
||||
return true
|
||||
end function
|
||||
|
||||
' @post("/dial/YouTube")
|
||||
' @post("/dial/:device-id/YouTube")
|
||||
function PostDialYouTube(context as object) as boolean
|
||||
request = context.request
|
||||
response = context.response
|
||||
@@ -100,7 +100,7 @@ namespace Http
|
||||
return true
|
||||
end function
|
||||
|
||||
' @delete("/dial/YouTube/run")
|
||||
' @delete("/dial/:device-id/YouTube/run")
|
||||
function CloseChannel(context as object) as boolean
|
||||
response = context.response
|
||||
|
||||
|
||||
Reference in new issue
Block a user