Small fix in the sample function library
This commit is contained in:
parent
52ff892387
commit
bd70412795
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ ProcedureCDLL post_test(handler_Map_JSON.s, ContentData.s)
|
||||||
Define.s Encoded, TBD, Text, JSONStringToMap
|
Define.s Encoded, TBD, Text, JSONStringToMap
|
||||||
Define MyThreadJSON, File
|
Define MyThreadJSON, File
|
||||||
NewMap Header.s()
|
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, handler_Map_JSON)
|
WriteStringN(File, handler_Map_JSON)
|
||||||
WriteStringN(File, "Content Data:")
|
WriteStringN(File, "Content Data:")
|
||||||
|
@ -42,7 +42,7 @@ ProcedureCDLL post_test(handler_Map_JSON.s, ContentData.s)
|
||||||
Text = ~"<html lang=\"de\">" +
|
Text = ~"<html lang=\"de\">" +
|
||||||
"<head>" +
|
"<head>" +
|
||||||
~"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>" +
|
~"<meta http-equiv=\"Content-Type\" content=\"text/html; charset=utf-8\"/>" +
|
||||||
"<title>Alle Client Headers</title></header><body>"+TBD+"<hr/><br/><h1>ConentJSON</h1><br/>"+ContentData+"</body></html>"
|
"<title>Alle Client Headers</title></header><body>"+TBD+"<hr/><br/><h1>Conent in JSON Format</h1><br/>"+ContentData+"</body></html>"
|
||||||
*Text = AllocateMemory(StringByteLength(Text, #PB_UTF8))
|
*Text = AllocateMemory(StringByteLength(Text, #PB_UTF8))
|
||||||
PokeS(*Text, Text, -1, #PB_UTF8)
|
PokeS(*Text, Text, -1, #PB_UTF8)
|
||||||
Encoded = Base64Encoder(*Text, MemorySize(*Text))
|
Encoded = Base64Encoder(*Text, MemorySize(*Text))
|
||||||
|
|
Loading…
Reference in a new issue