Snow Leopard: Fix bug in implementation of process_headers