Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[core-lro] Support path rewriting #33363

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update sdk/core/core-lro/src/http/utils.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
deyaaeldeen and Copilot authored Mar 12, 2025
commit fec57079759bad3bf9314b4beda2358a0b324ea1
4 changes: 4 additions & 0 deletions sdk/core/core-lro/src/http/utils.ts
Original file line number Diff line number Diff line change
@@ -39,6 +39,10 @@ export function rewriteUrl({
}
}

// Normalize the baseUrl by appending a trailing slash if missing
if (!baseUrl.endsWith('/')) {
baseUrl += '/';
}
let newBase: URL;
try {
newBase = new URL(baseUrl);