facebook/tornado — pull request #422 by davidwilemski (2011-12-17 19:54:36+00:00)
Title: xheaders xss - Fix for bug #392

I just wrote a simple validation function that uses the `socket.inet_pton()` function. Since that module was already imported, it seemed the best way to solve while not adding much overhead.