davecheney / httpstat

It's like curl -v, with colours.
MIT License
6.97k stars 382 forks source link

Sort headers intelligently #18

Closed davecheney closed 7 years ago

davecheney commented 7 years ago

From #16

I thought about this previously and have two suggestions.

  1. http headers are not sorted, they probably get unsorted more in this version compared to the python version because of the way maps work in Go vs whatever curl is doing.
  2. if we are going to sort headers, it shouldn't just be plain alpha sort, it should

I know this is more work, but I think this is only worth doing if it's done to this degree of precision.

davecheney commented 7 years ago

Note to implementors, ignore point 2a, this is the response, Host is not part of the response headers. This was my mistake.