@tomphttp/bare-client
Advanced tools
Comparing version 1.1.2-beta.1 to 1.1.2-beta.2
@@ -121,3 +121,3 @@ // The user likely has overwritten all networking functions after importing bare-client | ||
if (protocol.startsWith('blob:')) { | ||
const response = await fetch(`blob:${location.origin}${path}`); | ||
const response = await fetch(`${protocol}${host}${path}`); | ||
const result = new Response(response.body, response); | ||
@@ -653,3 +653,3 @@ result.rawHeaders = Object.fromEntries(response.headers); | ||
if (protocol.startsWith('blob:')) { | ||
const response = await fetch(`blob:${location.origin}${path}`); | ||
const response = await fetch(`${protocol}${host}${path}`); | ||
const result = new Response(response.body, response); | ||
@@ -894,3 +894,6 @@ result.rawHeaders = Object.fromEntries(response.headers); | ||
for (let i = 0;; i++) { | ||
headers.host = url.host; | ||
if ('host' in headers) | ||
headers.host = url.host; | ||
else | ||
headers.Host = url.host; | ||
const response = await this.request(method, headers, body, url.protocol, url.hostname, resolvePort(url), url.pathname + url.search, cache, signal); | ||
@@ -897,0 +900,0 @@ response.finalURL = url.toString(); |
{ | ||
"name": "@tomphttp/bare-client", | ||
"version": "1.1.2-beta.1", | ||
"version": "1.1.2-beta.2", | ||
"homepage": "https://github.com/tomphttp", | ||
@@ -5,0 +5,0 @@ "bugs": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
253049
2075