@xeno-js/core 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +2 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3228,7 +3228,8 @@ var init_base_http_adapter = __esm({
|
|
|
3228
3228
|
parseUrl(rawUrl = "/", headers, queryParams) {
|
|
3229
3229
|
const protocol = StringHelper3.getSingleValue(headers["x-forwarded-proto"]) ?? "https";
|
|
3230
3230
|
const host = StringHelper3.safeStringify(headers["host"]) ?? "localhost";
|
|
3231
|
-
const
|
|
3231
|
+
const cleanHost = host.replace(/['"]/g, "");
|
|
3232
|
+
const url = new URL(rawUrl, `${protocol}://${cleanHost}`);
|
|
3232
3233
|
if (!Guards35.isNullOrEmpty(queryParams)) {
|
|
3233
3234
|
for (const [key, value] of Object.entries(queryParams)) {
|
|
3234
3235
|
if (Guards35.isArray(value)) {
|