@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 CHANGED
@@ -3218,7 +3218,8 @@ var init_base_http_adapter = __esm({
3218
3218
  parseUrl(rawUrl = "/", headers, queryParams) {
3219
3219
  const protocol = import_shared60.StringHelper.getSingleValue(headers["x-forwarded-proto"]) ?? "https";
3220
3220
  const host = import_shared60.StringHelper.safeStringify(headers["host"]) ?? "localhost";
3221
- const url = new URL(rawUrl, `${protocol}://${host}`);
3221
+ const cleanHost = host.replace(/['"]/g, "");
3222
+ const url = new URL(rawUrl, `${protocol}://${cleanHost}`);
3222
3223
  if (!import_shared60.Guards.isNullOrEmpty(queryParams)) {
3223
3224
  for (const [key, value] of Object.entries(queryParams)) {
3224
3225
  if (import_shared60.Guards.isArray(value)) {