File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ring-core-protocols/src/ring/core Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 31
31
(some #(when (.equalsIgnoreCase " content-type" (key %)) (val %)))
32
32
(find-charset-in-content-type )))
33
33
34
- (defn- str->bytes [^String s ^String charset]
34
+ (defn- str->bytes ^bytes [^String s ^String charset]
35
35
(if charset (.getBytes s charset) (.getBytes s)))
36
36
37
37
(defn- response-writer ^Writer [response ^OutputStream output-stream]
54
54
55
55
(extend-protocol StreamableResponseBody
56
56
String
57
- (write-body-to-stream [body response output-stream]
57
+ (write-body-to-stream [body response ^OutputStream output-stream]
58
58
; ; No need to use a writer for a single string, and this prevents a
59
59
; ; flush being used for a value of fixed length.
60
60
(.write output-stream (str->bytes body (response-charset response)))
You can’t perform that action at this time.
0 commit comments