fix casting for HTTP port
Merge pull request #23 from yosida95/patch-1

fix casting for HTTP port