Fixes response header foreach var

Fixes wrong used var.