From 05fb46a573aa6b19efb79c781c797a36498c57b4 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 17 Jun 2024 08:14:01 +0200 Subject: [PATCH] :sparkles: Accept uri instances on http client --- backend/src/app/http/client.clj | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/src/app/http/client.clj b/backend/src/app/http/client.clj index 9ef4cc4b2..4494a1bb0 100644 --- a/backend/src/app/http/client.clj +++ b/backend/src/app/http/client.clj @@ -54,9 +54,10 @@ "A convencience toplevel function for gradual migration to a new API convention." ([cfg-or-client request] - (let [client (resolve-client cfg-or-client)] + (let [client (resolve-client cfg-or-client) + request (update request :uri str)] (send! client request {:sync? true}))) ([cfg-or-client request options] - (let [client (resolve-client cfg-or-client)] + (let [client (resolve-client cfg-or-client) + request (update request :uri str)] (send! client request (merge {:sync? true} options))))) -