Fix bug in httprequest class when calling m.global

This commit is contained in:
Brahim Hadriche committed 2025-09-06 13:33:19 -04:00
1 parent a9219f0ef9
commit 087c1c011a
4 files changed
+10 -6

No files matched your search

@@ -25,11 +25,13 @@ namespace Http
public success as boolean
public settings as Http.HttpSettings
public task as object
public telemetry as object
public websocket as Web.WebSocketServer
function new(settings as HttpSettings, task as object)
function new(settings as HttpSettings, task as object, telemetry as object)
m.settings = settings
m.task = task
m.telemetry = telemetry
m.routers = []
m.postRouters = []
m.utils = new Utils()
@@ -198,7 +200,7 @@ namespace Http
function ProcessRequestLocal(method as string, uri as string, headers as object, body as string) as object
LogInfo(`Processing request locally ${method} ${uri}`)
request = new HttpRequest()
request = new HttpRequest(m)
request.FromParsedData(method, uri, headers, body)
response = new HttpResponse(request, m, m.settings)