Update uv.sw.js
This commit is contained in:
parent
19ea7e8a02
commit
07bbf9d430
1 changed files with 2 additions and 2 deletions
|
|
@ -96,7 +96,7 @@ class UVServiceWorker extends EventEmitter {
|
||||||
};
|
};
|
||||||
|
|
||||||
if (cookieStr) requestCtx.headers.cookie = cookieStr;
|
if (cookieStr) requestCtx.headers.cookie = cookieStr;
|
||||||
|
requestCtx.headers.Host = requestCtx.url.host;
|
||||||
|
|
||||||
const reqEvent = new HookEvent(requestCtx, null, null);
|
const reqEvent = new HookEvent(requestCtx, null, null);
|
||||||
this.emit('request', reqEvent);
|
this.emit('request', reqEvent);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue