rnithyanand / dpkt

Automatically exported from code.google.com/p/dpkt
Other
0 stars 0 forks source link

[patch] Made http.py return ordered headers #138

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Not a bug, just an improvement.

HTTP headers are returned unordered (they are held in a simple dict). Simple 
patch to make headers be returned in the same order as they are in the request.

This is helpful for the very particular use case to fingerprint certain 
browsers.

This does have some drawbacks, since OrderedDicts are python 2.7 and above 
only. Backwards compatibility can be achieved using ordereddict, but it 
introduces an extra dependency.

Original issue reported on code.google.com by alex...@gmail.com on 28 Mar 2015 at 8:11

Attachments: