@fabric-harness/databricks 4.3.2 → 4.4.0

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.
@@ -38763,7 +38763,11 @@ function fabricHttpClient(fetchImpl, extraHeaders) {
38763
38763
  if (request.body instanceof ReadableStream) {
38764
38764
  init.duplex = "half";
38765
38765
  }
38766
- const response = await fetchImpl(request.url, init);
38766
+ const url2 = new URL(request.url);
38767
+ if (/^\/api\/serving-endpoints\/[^/]+\/invocations$/u.test(url2.pathname)) {
38768
+ url2.pathname = url2.pathname.slice("/api".length);
38769
+ }
38770
+ const response = await fetchImpl(url2, init);
38767
38771
  return {
38768
38772
  statusCode: response.status,
38769
38773
  headers: response.headers,