From 4cf3392e50da9b5d45027e707c0db5844b93d628 Mon Sep 17 00:00:00 2001 From: Henrik Nordstrom Date: Tue, 1 Feb 2011 16:44:53 +0100 Subject: [PATCH] Sort header names for a predictable result --- libmproxy/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libmproxy/utils.py b/libmproxy/utils.py index 22f98d126..42e4d28c6 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("")