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 3131 (some #(when (.equalsIgnoreCase " content-type" (key %)) (val %)))
3232 (find-charset-in-content-type )))
3333
34- (defn- str->bytes [^String s ^String charset]
34+ (defn- str->bytes ^bytes [^String s ^String charset]
3535 (if charset (.getBytes s charset) (.getBytes s)))
3636
3737(defn- response-writer ^Writer [response ^OutputStream output-stream]
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.
6060 (.write output-stream (str->bytes body (response-charset response)))
You can’t perform that action at this time.
0 commit comments