justquick/python-varnish — pull request #12 by jaddison (2013-02-10 20:43:58+00:00)
Title: Two PURGE issues addressed

I found that PURGE calls were failing for two reasons/scenarios:

1. '?' was *always* appended to the URL to purge, which caused misses in the lookup, and resulted in purging not happening for the requested URL.
2. when running your website with a port specified (ie. http://localhost:8002/), the Host header in the purge call incorrectly does not include the port. This too caused misses in the Varnish lookup and results in no purge happening.