Clear headers array between loop iterations