diff options
Diffstat (limited to 'src/mailman/rest/helpers.py')
| -rw-r--r-- | src/mailman/rest/helpers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mailman/rest/helpers.py b/src/mailman/rest/helpers.py index 4ea5b130c..bc9b5538a 100644 --- a/src/mailman/rest/helpers.py +++ b/src/mailman/rest/helpers.py @@ -112,7 +112,8 @@ def etag(resource): hashfood = pformat(resource).encode('raw-unicode-escape') etag = hashlib.sha1(hashfood).hexdigest() resource['http_etag'] = '"{0}"'.format(etag) - return json.dumps(resource, cls=ExtendedEncoder) + return json.dumps(resource, cls=ExtendedEncoder, + sort_keys=as_boolean(config.devmode.enabled)) |
