log_header is being sent only once