staticgenerator
staticgenerator copied to clipboard
Fix crash when publishing static pages
In order to publish static pages, staticgenerator makes a fake request (using its DummyHandler) to the generated page. It doesn't provide a REMOTE_ADDR or a request.REQUEST field. This can cause middleware that is expecting such fields to crash, which makes static page generation fail. These fixes solve that problem.