2 part question:
1. How does ASP.NET MVC deal / store || ignore malformed headers?? - e.g. if a proxy or security app tweaking:
Accept-Encoding: gzip,deflate
to be -> X-cept-EncodXng: gzip,deflate
As when this happens, I am currently unable to respond optimally – which leads to part 2:
2. Are there any standard methods or libs for measuring similarity such as Hamming Distance or [... Insert distance measure of choice ...] that would/could be effective for this scenario**?
** This would likely be a custom MVC filter to restore the corrupted key/value appropriately.