fhemweb.js: remove unneeded csrf from the longpoll connection
git-svn-id: https://svn.fhem.de/fhem/trunk@13349 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -889,7 +889,6 @@ FW_longpoll()
|
|||||||
"&inform=type=status;filter="+filter+";since="+since+";fmt=JSON"+
|
"&inform=type=status;filter="+filter+";since="+since+";fmt=JSON"+
|
||||||
'&fw_id='+$("body").attr('fw_id')+
|
'&fw_id='+$("body").attr('fw_id')+
|
||||||
"×tamp="+new Date().getTime();
|
"×tamp="+new Date().getTime();
|
||||||
query = addcsrf(query);
|
|
||||||
|
|
||||||
var loc = (""+location).replace(/\?.*/,"");
|
var loc = (""+location).replace(/\?.*/,"");
|
||||||
if(typeof WebSocket == "function" && FW_longpollType == "websocket") {
|
if(typeof WebSocket == "function" && FW_longpollType == "websocket") {
|
||||||
@@ -908,8 +907,8 @@ FW_longpoll()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
log("Inform-channel opened ("+(FW_longpollType == 1 ? "HTTP":FW_longpollType )
|
log("Inform-channel opened ("+(FW_longpollType==1 ? "HTTP":FW_longpollType)+
|
||||||
+") with filter "+filter);
|
") with filter "+filter);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*************** LONGPOLL END **************/
|
/*************** LONGPOLL END **************/
|
||||||
|
|||||||
Reference in New Issue
Block a user