mirror of
https://github.com/Grasscutters/mitmproxy.git
synced 2024-11-22 15:37:45 +00:00
Sort header names for a predictable result
This commit is contained in:
parent
bd01126b2b
commit
4cf3392e50
@ -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("")
|
||||
|
Loading…
Reference in New Issue
Block a user