mirror of
https://github.com/MercuryWorkshop/bare-mux.git
synced 2025-05-14 14:50:03 -04:00
remove host header
This commit is contained in:
parent
4c62e7a692
commit
76bda04e7c
6 changed files with 78 additions and 82 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@mercuryworkshop/bare-mux",
|
||||
"version": "2.1.4",
|
||||
"version": "2.1.5",
|
||||
"description": "",
|
||||
"type": "module",
|
||||
"scripts": {
|
||||
|
|
|
@ -185,9 +185,6 @@ export class BareClient {
|
|||
}
|
||||
|
||||
for (let i = 0; ; i++) {
|
||||
if ('host' in headers) headers.host = urlO.host;
|
||||
else headers.Host = urlO.host;
|
||||
|
||||
let resp = (await this.worker.sendMessage(<WorkerMessage>{
|
||||
type: "fetch",
|
||||
fetch: {
|
||||
|
@ -204,7 +201,6 @@ export class BareClient {
|
|||
status: resp.status,
|
||||
statusText: resp.statusText,
|
||||
}) as BareResponse;
|
||||
responseobj.rawHeaders = resp.headers;
|
||||
responseobj.rawResponse = new Response(resp.body);
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue