[SR-Users] Does tls/wss actually work or What is required for tls/wss

Juha Heinanen jh at tutpro.com
Wed Mar 19 17:19:14 CET 2014


Peter Dunkley writes:

> There is an example websocket.cfg in the examples directory in Git.  Have
> you tried using this?

peter,

regarding the example, i noticed today that i had to make a small change
to it in order to cope with hhtp get from my firefox browser:

        if ($hdr(Upgrade)=~"websocket"
                         && $hdr(Connection)=~"Upgrade"
                         && $rm=~"GET") {

=>

    	if (($hdr(Upgrade) == "websocket") &&
                in_list("Upgrade", $hdr(Connection), ",") &&
    			($rm == "GET")) {

this is because body of Connection header had also another value in
addition to Upgrade.

-- juha



More information about the sr-users mailing list