diff --git a/examples/server/public_simplechat/simplechat.js b/examples/server/public_simplechat/simplechat.js index 01951afe1..a2061e61b 100644 --- a/examples/server/public_simplechat/simplechat.js +++ b/examples/server/public_simplechat/simplechat.js @@ -728,6 +728,8 @@ class Me { ui.el_create_append_p(`baseURL:${this.baseURL}`, elDiv); + ui.el_create_append_p(`Authorization:${this.headers["Authorization"]}`, elDiv); + ui.el_create_append_p(`bStream:${this.bStream}`, elDiv); ui.el_create_append_p(`bCompletionFreshChatAlways:${this.bCompletionFreshChatAlways}`, elDiv); @@ -755,6 +757,11 @@ class Me { }); elDiv.appendChild(inp); + inp = ui.el_creatediv_input("SetAuthorization", "Authorization", "text", this.headers["Authorization"], (val)=>{ + this.headers["Authorization"] = val; + }); + elDiv.appendChild(inp); + let bb = ui.el_creatediv_boolbutton("SetStream", "Stream", {true: "[+] yes stream", false: "[-] do oneshot"}, this.bStream, (val)=>{ this.bStream = val; });