summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/websockets/handlers/referrer_wsh.py
blob: 9df652dc3cbf12f6364462839e340848dec8e08f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/python

from mod_pywebsocket import msgutil

def web_socket_do_extra_handshake(request):
    pass

def web_socket_transfer_data(request):
    referrer = request.headers_in.get("referer")
    if referrer is None:
        referrer = "MISSING AS PER FETCH"
    msgutil.send_message(request, referrer)