Removed POST header check interfering with C2 profile.

This commit is contained in:
Jakob Friedl
2025-10-23 17:45:13 +02:00
parent 432f37755c
commit 7326cc10b6
4 changed files with 21 additions and 23 deletions

View File

@@ -120,12 +120,6 @@ proc httpGet*(request: Request) =
proc httpPost*(request: Request) =
{.cast(gcsafe).}:
# Check headers
# If POST data is not binary data, return 404 error code
if request.headers.get("Content-Type") != "application/octet-stream":
request.respond(404, body = "")
return
try:
# Differentiate between registration and task result packet
var unpacker = Unpacker.init(request.body)