diff options
-rw-r--r-- | libmproxy/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmproxy/utils.py b/libmproxy/utils.py index 22f98d12..42e4d28c 100644 --- a/libmproxy/utils.py +++ b/libmproxy/utils.py @@ -236,7 +236,7 @@ class Headers(MultiDict): Returns a string containing a formatted header string. """ headerElements = [] - for key in self.keys(): + for key in sorted(self.keys()): for val in self[key]: headerElements.append(key + ": " + val) headerElements.append("") |