diff options
Diffstat (limited to 'ext/flash/01_http.js')
-rw-r--r-- | ext/flash/01_http.js | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ext/flash/01_http.js b/ext/flash/01_http.js index 5152fd9e5..ff2eab63c 100644 --- a/ext/flash/01_http.js +++ b/ext/flash/01_http.js @@ -570,7 +570,16 @@ function createServe(opFn) { let resp; try { - resp = handler(req); + resp = handler(req, () => { + const { 0: hostname, 1: port } = core.ops.op_flash_addr( + serverId, + i, + ); + return { + hostname, + port, + }; + }); if (ObjectPrototypeIsPrototypeOf(PromisePrototype, resp)) { PromisePrototypeCatch( PromisePrototypeThen( |