Added youtube video example profile.

This commit is contained in:
Jakob Friedl
2025-11-07 20:22:13 +01:00
parent 4907639848
commit 0149a82f60
6 changed files with 135 additions and 3 deletions

View File

@@ -110,7 +110,7 @@ proc httpGet*(request: Request) =
cq.client.sendConsoleItem(agentId, LOG_INFO, fmt"{$response.len} bytes sent.")
cq.info(fmt"{$response.len} bytes sent.")
except CatchableError:
except CatchableError as err:
request.respond(404, body = "")
#[
@@ -125,6 +125,9 @@ proc httpPost*(request: Request) =
var unpacker = Unpacker.init(request.body)
let header = unpacker.deserializeHeader()
# Reverse data transformation to get payload
# Add response headers, as defined in team server profile
var headers: HttpHeaders
for header, value in cq.profile.getTable("http-post.server.headers"):