Some changes I needed to make for https://github.com/nlevitt/warcprox