snap_http.logs() currently returns raw bytes in result because the /logs endpoint responds with application/x-ndjson rather than application/json. Callers have to manually strip the \x1e record separators and parse each line themselves.
result should instead be a list of dicts. The fix is to handle application/x-ndjson in http.py alongside the existing application/json case: spilt on \x1e and JSON parse each line.
snap_http.logs()currently returns raw bytes inresultbecause the/logsendpoint responds withapplication/x-ndjsonrather thanapplication/json. Callers have to manually strip the\x1erecord separators and parse each line themselves.resultshould instead be a list of dicts. The fix is to handleapplication/x-ndjsoninhttp.pyalongside the existingapplication/jsoncase: spilt on\x1eand JSON parse each line.