Refactored request host processing out into separate method
Merge pull request #149 from maciej-gol/custom_request_host

Refactored request host processing out into separate method