Make wpad endpoint work with Tornado