Skip to content

Commit 275095c

Browse files
committed
Replace call to deprecated Long. constructor
1 parent ac821a5 commit 275095c

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)