We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3cfd4a2 commit deb254aCopy full SHA for deb254a
ring-core-protocols/src/ring/core/protocols.clj
@@ -54,10 +54,10 @@
54
55
(extend-protocol StreamableResponseBody
56
String
57
- (write-body-to-stream [body response output-stream]
+ (write-body-to-stream [body response ^OutputStream output-stream]
58
;; No need to use a writer for a single string, and this prevents a
59
;; flush being used for a value of fixed length.
60
- (.write output-stream (str->bytes body (response-charset response)))
+ (.write output-stream ^bytes (str->bytes body (response-charset response)))
61
(.close output-stream))
62
clojure.lang.ISeq
63
(write-body-to-stream [body response output-stream]
0 commit comments