nope, loop

This commit is contained in:
2025-12-18 23:19:48 +01:00
parent c3ef6761a9
commit 92562c7489
2 changed files with 3 additions and 8 deletions
@@ -518,18 +518,12 @@ public class PretixManager implements SmartInitializingSingleton {
MultiValueMap<String, String> queryParameters) {
String cleanedPath = path.replace(host, "");
int queryIndex = cleanedPath.indexOf('?');
if (queryIndex != -1) {
cleanedPath = cleanedPath.substring(0, queryIndex);
}
logger.debug("method:" + method.toString() + ", path: " + path + ", cleaned path: " + cleanedPath + ", host: "
+ host);
final String finalPath = cleanedPath;
WebClient.RequestBodySpec request = webClient.method(method)
.uri(uriBuilder -> uriBuilder.path(finalPath).queryParams(queryParameters).build());
.uri(uriBuilder -> uriBuilder.path(cleanedPath).queryParams(queryParameters).build());
if (payload != null) {
request.bodyValue(gson.toJson(payload));