Skip to content

require_GET doesn't allow HEAD requests which WSGI Servers depend on

Abhilash Raj requested to merge maxking/postorius:templates into master

require_GET only allows GET requests, but require_safe allows GET and HEAD. HEAD is sometimes required by WSGI servers to properly generate the response. With require_GET, the WSGI server doesn't return the response properly, but, Django's test server allows that happily.

It is hard to reproduce this in a Django test case.

Edited by Abhilash Raj

Merge request reports