This is an automated email from the git hooks/post-receive script. x2go pushed a change to branch master in repository x2gohtmlclient. from 87022c5 Add license headers to non-image files. new f64e06f Send cookie as buffer instead of string. new 3662281 Improve JSON parsing. The 2 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Summary of changes: src/x2gohtmlclient.js | 3 ++- src/x2gokdrivehtmlclient.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gohtmlclient.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2gohtmlclient. commit f64e06f166dc01653cf40e9122c4f99eb73f0d23 Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de> Date: Mon Jun 21 18:17:49 2021 -0500 Send cookie as buffer instead of string. --- src/x2gokdrivehtmlclient.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/x2gokdrivehtmlclient.js b/src/x2gokdrivehtmlclient.js index 70884c8..8641ee6 100644 --- a/src/x2gokdrivehtmlclient.js +++ b/src/x2gokdrivehtmlclient.js @@ -497,8 +497,8 @@ X2GoKDriveHTMLClient sendCookie() { - //this creates "views" on buffer offset 0, length 5 elements - this.__websocket.send(this.__cookie); + let encoder = new TextEncoder(); + this.__websocket.send(encoder.encode(this.__cookie).buffer); } -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gohtmlclient.git
This is an automated email from the git hooks/post-receive script. x2go pushed a commit to branch master in repository x2gohtmlclient. commit 366228198f991bd273d92f8590b1766d36d7b66d Author: Oleksandr Shneyder <o.shneyder@phoca-gmbh.de> Date: Mon Jun 21 18:22:20 2021 -0500 Improve JSON parsing. --- src/x2gohtmlclient.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/x2gohtmlclient.js b/src/x2gohtmlclient.js index cad9dec..6764dad 100644 --- a/src/x2gohtmlclient.js +++ b/src/x2gohtmlclient.js @@ -57,7 +57,8 @@ X2GoHTMLClient console.log(this); console.log(this.response); - let resp = JSON.parse(this.response.substr(this.response.indexOf('{'))); + let jsonSep='__STARTJSON__{'; + let resp = JSON.parse(this.response.substr(this.response.indexOf(jsonSep)+jsonSep.length-1)); console.log(resp); if (resp.status != 0) { -- Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/x2gohtmlclient.git