@nxtedition/nxt-undici 6.3.12 → 6.3.14
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/lib/utils.js
CHANGED
|
@@ -375,10 +375,9 @@ export function decorateError(err, opts, { statusCode, headers, trailers, body }
|
|
|
375
375
|
err.statusCode = statusCode
|
|
376
376
|
}
|
|
377
377
|
|
|
378
|
-
err.url ??= opts.origin ? new URL(opts.path, opts.origin).href : null
|
|
379
|
-
|
|
380
378
|
err.req = {
|
|
381
|
-
|
|
379
|
+
path: opts.path,
|
|
380
|
+
origin: opts.origin,
|
|
382
381
|
method: opts?.method,
|
|
383
382
|
headers: opts?.headers,
|
|
384
383
|
body:
|