Fixed variable names in `header` method

Bug occurred when passing headers as an array.
Merge pull request #37 from rabas/1.6/develop

Fixed variable names in header method