oops that wasnt quite right

This commit is contained in:
Rich Harris
2018-09-02 18:41:17 -04:00
parent 48b87edb5b
commit 45f4c47a3e

View File

@@ -170,7 +170,7 @@ async function execute(emitter: EventEmitter, opts: Opts) {
const location = r.headers.get('Location');
type = 'text/html';
body = `<script>window.location.href = "${location.replace(root.href, '')}"</script>`;
body = `<script>window.location.href = "${location.replace(origin, '')}"</script>`;
await handle(resolve(root.href, location));
}