Make sort_keys True to avoid hash randomize feature in Python 3.
authorBerker Peksag <berker.peksag@gmail.com>
Mon, 4 Aug 2014 19:06:40 +0000 (22:06 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Mon, 4 Aug 2014 19:06:40 +0000 (22:06 +0300)
mediagoblin/plugins/api/views.py

index a9aaacee5325683b19e72d920ba36f5f69f88dd5..02fd810783e9fe200f42ae17e05bc01ad736bd7c 100644 (file)
@@ -104,7 +104,7 @@ def api_test(request):
 
     # TODO: This is the *only* thing using Response() here, should that
     # not simply use json_response()?
-    return Response(json.dumps(user_data))
+    return Response(json.dumps(user_data, sort_keys=True))
 
 
 def get_entries(request):