def _get_headers(self, scope):
    '\n        Extract headers from the ASGI scope, in the format that the Sentry protocol expects.\n        '
    headers = {}
    for (raw_key, raw_value) in scope['headers']:
        key = raw_key.decode('latin-1')
        value = raw_value.decode('latin-1')
        if (key in headers):
            headers[key] = ((headers[key] + ', ') + value)
        else:
            headers[key] = value
    return headers
Extract headers from the ASGI scope, in the format that the Sentry protocol expects.
def _get_headers(self, scope):
    '\n        \n        '
    headers = {}
    for (raw_key, raw_value) in scope['headers']:
        key = raw_key.decode('latin-1')
        value = raw_value.decode('latin-1')
        if (key in headers):
            headers[key] = ((headers[key] + ', ') + value)
        else:
            headers[key] = value
    return headers