spakle.py
def decode_payload(self, data):
        """
        data from gitlab is a x-www-form-urlencoded string
        some hoops must be jumped through to get a useable dict

        WARNING: all data in dict (keys and values) are bytes not strings
        """
        data = urllib.parse.parse_qs(data)
        # print("incoming:", data)

        # data[payload] is a list with one giant string in it
        payload = data[b'payload'][0]

        # decode payload string into dict
        payload = json.loads(payload.decode('utf-8'))

        return payload

        data from gitlab is a x-www-form-urlencoded string
        some hoops must be jumped through to get a useable dict

        WARNING: all data in dict (keys and values) are bytes not strings
        
data from gitlab is a x-www-form-urlencoded string
some hoops must be jumped through to get a useable dict

all data in dict (keys and values) are bytes not strings
data from gitlab is a x - www - form - urlencoded string some hoops must be jumped through to get a useable dict all data in dict ( keys and values ) are bytes not strings
def decode_payload(self, data):
        data = urllib.parse.parse_qs(data)
        payload = data[b'payload'][0]
        payload = json.loads(payload.decode('utf-8'))
        return payload
def decode_payload ( self , data ) : data = urllib . parse . parse_qs ( data ) payload = data [ b'payload' ] [ 0 ] payload = json . loads ( payload . decode ( 'utf-8' ) ) return payload
data from gitlab is a x-www-form-urlencoded string
some hoops must be jumped through to get a useable dict
data from gitlab is a x - www - form - urlencoded string some hoops must be jumped through to get a useable dict
"""
        data from gitlab is a x-www-form-urlencoded string
        some hoops must be jumped through to get a useable dict

        WARNING: all data in dict (keys and values) are bytes not strings
        """ # print("incoming:", data) # data[payload] is a list with one giant string in it # decode payload string into dict
self
data