1
0
mirror of https://github.com/lammertb/libhttp.git synced 2025-08-07 16:02:55 +03:00

Fix for issue #77 (Step 1/?)

This commit is contained in:
bel
2015-04-06 23:52:37 +02:00
parent 4c37ed9e27
commit 1a273e421d
2 changed files with 20 additions and 10 deletions

View File

@@ -12,7 +12,6 @@
</style>
</head>
<body>
<script type="text/javascript"><![CDATA[
var connection;
@@ -58,14 +57,14 @@
var ka = queryStringElem("keepAlive");
if (ka) {
use_keepAlive = (ka.toLowerCase()!="false") && (ka.toLowerCase()!=0);
ka = ka.toLowerCase();
use_keepAlive = (ka!="false") && (ka!="f") && (ka!="no") && (ka!="n") && (ka!=0);
} else {
use_keepAlive = true;
}
connection.onopen = function () {
keepAlive = use_keepAlive;
alert(keepAlive);
webSockKeepAlive();
};