File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
ring-servlet/src/ring/util Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
1
(ns ring.util.servlet
2
2
" Compatibility functions for turning a ring handler into a Java servlet."
3
- (:require [clojure.java.io :as io]
4
- [clojure.string :as string]
3
+ (:require [clojure.string :as string]
5
4
[ring.core.protocols :as protocols])
6
- (:import [java.io File InputStream FileInputStream]
7
- [java.util Locale]
5
+ (:import [java.util Locale]
8
6
[javax.servlet AsyncContext]
9
7
[javax.servlet.http HttpServlet
10
8
HttpServletRequest
27
25
" Returns the content length, or nil if there is no content."
28
26
[^HttpServletRequest request]
29
27
(let [length (.getContentLength request)]
30
- (if (>= length 0 ) length)))
28
+ (when (>= length 0 ) length)))
31
29
32
30
(defn- get-client-cert
33
31
" Returns the SSL client certificate of the request, if one exists."
You can’t perform that action at this time.
0 commit comments