Seems that Apache insists on removing the "Content-Length" header when sending a response to a HEAD request.
Is there a way to configure it (or code it in PHP) to send "Content-Length: 0" for such responses?
For some weird reason it breaks the client (which is not under my control).