httpd: free big buffer after use; improve grep-ability of 'headers' variable