davsclaus opened a new pull request, #23801: URL: https://github.com/apache/camel/pull/23801
## Backport of #23797 Cherry-pick of #23797 onto `camel-4.18.x`. **Original PR:** #23797 - CAMEL-23698: Do not append trailing ? to URI when query string is empty **Original author:** @davsclaus **Target branch:** `camel-4.18.x` ### Original description - Fix `URISupport.createURIWithQuery()` to not append a bare `?` when the query string is empty - When `camel-rest-openapi` produces a REST call from an OpenAPI spec with optional query parameters that are not set, the URL ended with a trailing `?` (e.g., `/users/myuser/repos?` instead of `/users/myuser/repos`) - Some HTTP servers and proxies treat `/resource` and `/resource?` differently, so this can cause issues _Claude Code on behalf of Claus Ibsen_ -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
