Skip to content

Commit deb254a

Browse files
author
jj
committed
Fix reflection in core protocols
1 parent 3cfd4a2 commit deb254a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ring-core-protocols/src/ring/core/protocols.clj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@
5454

5555
(extend-protocol StreamableResponseBody
5656
String
57-
(write-body-to-stream [body response output-stream]
57+
(write-body-to-stream [body response ^OutputStream output-stream]
5858
;; No need to use a writer for a single string, and this prevents a
5959
;; flush being used for a value of fixed length.
60-
(.write output-stream (str->bytes body (response-charset response)))
60+
(.write output-stream ^bytes (str->bytes body (response-charset response)))
6161
(.close output-stream))
6262
clojure.lang.ISeq
6363
(write-body-to-stream [body response output-stream]

0 commit comments

Comments
 (0)