fix(http): use location.href instead of toString

location.toString() fails when running with web_compomnents polyfill.