Skip to content

Commit afc300f

Browse files
authored
Merge pull request #463 from matasaru/master
Replace call to deprecated Long. constructor
2 parents ac821a5 + 275095c commit afc300f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ring-core/src/ring/util/request.clj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
{:added "1.3"}
2727
[request]
2828
(if-let [^String length (get-in request [:headers "content-length"])]
29-
(Long. length)))
29+
(Long/valueOf length)))
3030

3131
(defn character-encoding
3232
"Return the character encoding for the request, or nil if it is not set."

0 commit comments

Comments
 (0)