From bd704127951bdfc1f7fd2ccc3c84bf59a7499a35 Mon Sep 17 00:00:00 2001 From: Ground0 Date: Mon, 23 Sep 2024 05:57:51 +0200 Subject: [PATCH] Small fix in the sample function library --- server_example_function_library.pb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server_example_function_library.pb b/server_example_function_library.pb index d73509f..6c55c59 100644 --- a/server_example_function_library.pb +++ b/server_example_function_library.pb @@ -16,7 +16,7 @@ ProcedureCDLL post_test(handler_Map_JSON.s, ContentData.s) Define.s Encoded, TBD, Text, JSONStringToMap Define MyThreadJSON, File NewMap Header.s() - File = CreateFile(#PB_Any, "test.log") + File = CreateFile(#PB_Any, "/var/log/lhttpd/post_test.log") WriteStringN(File, "handler_Map_JSON:") WriteStringN(File, handler_Map_JSON) WriteStringN(File, "Content Data:") @@ -42,7 +42,7 @@ ProcedureCDLL post_test(handler_Map_JSON.s, ContentData.s) Text = ~"" + "" + ~"" + - "Alle Client Headers"+TBD+"

ConentJSON


"+ContentData+"" + "Alle Client Headers"+TBD+"

Conent in JSON Format


"+ContentData+"" *Text = AllocateMemory(StringByteLength(Text, #PB_UTF8)) PokeS(*Text, Text, -1, #PB_UTF8) Encoded = Base64Encoder(*Text, MemorySize(*Text))