(self)
Some clients aren't that smart when it comes to
        headers lookup.
Some clients aren't that smart when it comes to
        headers lookup.
Some clients aren t that smart when it comes to headers lookup .
def cleanup_headers(self):
        """
        Some clients aren't that smart when it comes to
        headers lookup.
        """
        response = cherrypy.response
        if not response.header_list:
            return

        headers = response.header_list[:]
        for (k, v) in headers:
            if k[:7] == 'Sec-Web':
                response.header_list.remove((k, v))
                response.header_list.append((k.replace('Sec-Websocket', 'Sec-WebSocket'), v))
def cleanup_headers ( self ) : response = cherrypy . response if not response . header_list : return headers = response . header_list [ : ] for ( k , v ) in headers : if k [ : 7 ] == 'Sec-Web' : response . header_list . remove ( ( k , v ) ) response . header_list . append ( ( k . replace ( 'Sec-Websocket' , 'Sec-WebSocket' ) , v ) )