Fixing bug caused by headers with array values.
Merge pull request #321 from nathanathan/patch-1

Fixing bug caused by headers with array values.