Resolves warning raised when version is not matched.
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'

Close #4893