attempt to fix multiple header issue

fixes #3893
Merge pull request #4061 from yiisoft/fix-headers

attempt to fix multiple header issue