I'm managing an old django (1.4) application where the following is happening.
In a function based view I receive a request, if it is a HEAD method then I just reply with an empty response
if request.method == 'HEAD':
return HttpResponse()
This is just a simple method to check that the client (a script) has a correct configuration and the url is correct.
Otherwise, if method is GET then proceed inside then view.
This work in a local django debug server.
When I deploy this behind Apache and wsgi, something is transforming my http HEAD method in GET.
In the apache log I see that it correctly receives a HEAD method but then in my django application the same request is received as GET!
Can Apache or wsgi be responsible for this? Where should I look for additional clues?