You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Update azure-autorust to append path and parameters via URL lib (#1663)
* Update azure-autorust to append path and parameters via URL lib
When returning a URL from Client::endpoint the URL contains a tailing slash
in any case. This is handled by the URL lib which will append the tailing
slash to the end upon calling Display::fmt. Therefore formatting the returned
URL from Client::endpoint will result in a duplicated slash, which could cause
some (not all) Azure endpoints to have some trouble.
For example:
Base URL: https://some-app-conf.azconfig.io/
AppConfigUrl: https://some-app-conf.azconfig.io//keys?api-version=2023-10-01
This resulted in a 404 response.
Removing the tailing slash from the URL manually does not solve the problem,
due to the reason mentioned above.
This patch applies a fix to append (set) the formatted path via rust URL lib,
which will handle the duplicated slash (or any other problem).
* Fix Code Style issue
* Fix Code Style issues for doc-comments
---------
Co-authored-by: Heath Stewart <[email protected]>
0 commit comments