Resolves warning raised when version is not matched.
Merge branch 'hotfix/4883'

Close #4883
Merge pull request #4893 from elyobo/fix-http-request-warning

Resolves warning raised when version is not matched.
[#4893] Added unit test

- Based on https://github.com/zendframework/zf2/pull/4893#issuecomment-21683205
Merge branch 'hotfix/4893' into develop

Forward port #4893