Skip to content

Commit f39f06c

Browse files
authored
Merge pull request #333 from RokLenarcic/fix-multipart-params-reflection
Fix multipart params reflection warning
2 parents 95e4ca2 + 847cb73 commit f39f06c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ring-core/src/ring/middleware/multipart_params.clj

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,10 +69,10 @@
6969
(let [html5-encoding (parse-html5-charset params)]
7070
(for [[k v field?] params]
7171
[k (if field?
72-
(String. (:bytes v) (str (or forced-encoding
73-
html5-encoding
74-
(:encoding v)
75-
fallback-encoding)))
72+
(String. ^bytes (:bytes v) (str (or forced-encoding
73+
html5-encoding
74+
(:encoding v)
75+
fallback-encoding)))
7676
v)])))
7777

7878
(defn- parse-file-item

0 commit comments

Comments
 (0)