1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-24 04:04:31 +00:00

1. Updated 'method' property of InboundMessage to be enumerable

2. Added memory check to ptrs structure
3. Fixed bug with remoteInterface's flags
This commit is contained in:
Bryan Roe
2021-11-15 12:57:45 -08:00
parent 75fc7d0878
commit 4e92d4530c
4 changed files with 4 additions and 4 deletions

View File

@@ -3025,7 +3025,7 @@ void ILibDuktape_HttpStream_AddHeaderDef(duk_context *ctx, struct packetheader *
duk_get_prop_string(ctx, -1, "toUpperCase"); // [message][method][toUpper]
duk_swap_top(ctx, -2); // [message][toUpper][this]
duk_call_method(ctx, 0); // [message][method]
ILibDuktape_CreateReadonlyProperty(ctx, "method"); // [message]
ILibDuktape_CreateReadonlyProperty_SetEnumerable(ctx, "method", 1); // [message]
duk_push_lstring(ctx, header->DirectiveObj, header->DirectiveObjLength);// [message][url]
duk_put_prop_string(ctx, -2, "url"); // [message]