Skip to content

Commit 6492d76

Browse files
authored
Fix: http-kit async middleware was not properly handled (#13)
* Fix: http-kit async middleware was not properly handled
1 parent 0e273c2 commit 6492d76

File tree

2 files changed

+11
-5
lines changed

2 files changed

+11
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Release notes for the Clojure SDK
22

3+
## 2025-11-27 - RC5
4+
5+
### Fixed
6+
- Fixed `starfederation.datastar.clojure.adapter.http-kit2/wrap-start-responding`,
7+
the async arity was improperly managed.
8+
39
## 2025-10-30 - RC4
410

511
This version's purpose is to transition the SDK to the new Datastar attribute

libraries/sdk-http-kit/src/main/starfederation/datastar/clojure/adapter/http_kit2.clj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -124,10 +124,11 @@
124124
(let [response (handler req)]
125125
(start-responding! response)
126126
response))
127-
([req respond _raise]
128-
(let [response (handler req)]
129-
(start-responding! response)
130-
(respond response)))))
127+
([req respond raise]
128+
(let [respond' (fn [response]
129+
(start-responding! response)
130+
(respond response))]
131+
(handler req respond' raise)))))
131132

132133

133134
(def start-responding-middleware
@@ -148,4 +149,3 @@
148149
(let [response (:response ctx)]
149150
(start-responding! response)
150151
ctx))})
151-

0 commit comments

Comments
 (0)