mirror of
https://github.com/zoffline/zwift-offline.git
synced 2026-03-12 21:23:00 -07:00
Add empty response for unknown feature
This can prevent issues like #498
This commit is contained in:
@@ -3790,6 +3790,7 @@ def create_variants_response(request, variants):
|
||||
response.variants.append(variants[param])
|
||||
else:
|
||||
logger.info("Unknown feature: " + param)
|
||||
response.variants.add().name = param
|
||||
return response.SerializeToString(), 200
|
||||
|
||||
@app.route('/experimentation/v1/variant', methods=['POST'])
|
||||
|
||||
Reference in New Issue
Block a user