Skip to content
Snippets Groups Projects
Commit c360a706 authored by echicken's avatar echicken
Browse files

In a script run as a timed event, client.protocol was 0 (and read-only) and...

In a script run as a timed event, client.protocol was 0 (and read-only) and client.protocol.toLowerCase() failed.
Replaced with client.protocol.toString().toLowerCase().
parent dd10be71
No related branches found
No related tags found
No related merge requests found
......@@ -30,7 +30,7 @@ function HTTPRequest(username,password)
this.request_headers.push("Connection: close");
if(js.global.client != undefined)
this.request_headers.push(
"Via: "+client.protocol.toLowerCase()+"/1.0 "+system.name);
"Via: "+client.protocol.toString().toLowerCase()+"/1.0 "+system.name);
// Request Headers
this.request_headers.push("Accept: text/*");
this.request_headers.push(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment