Skip to content

Commit bf7974f

Browse files
committed
Session desktop compatibility fix
If we don't include a `results` list here session-desktop disregards the entire response (and in particular, never processes the 401 telling it that it needs to re-fetch the auth token).
1 parent 771df57 commit bf7974f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sogs/legacy_routes.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ def handle_comapct_poll():
214214
try:
215215
r = handle_one_compact_poll(req)
216216
except HTTPException as e:
217-
r = {'status_code': e.get_response().status_code}
217+
r = {'status_code': e.get_response().status_code, 'results': []}
218218
result.append(r)
219219

220220
return jsonify({'status_code': 200, 'results': result})

0 commit comments

Comments
 (0)