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 11(ns ring.util.servlet
22 " 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]
54 [ring.core.protocols :as protocols])
6- (:import [java.io File InputStream FileInputStream]
7- [java.util Locale]
5+ (:import [java.util Locale]
86 [javax.servlet AsyncContext]
97 [javax.servlet.http HttpServlet
108 HttpServletRequest
2725 " Returns the content length, or nil if there is no content."
2826 [^HttpServletRequest request]
2927 (let [length (.getContentLength request)]
30- (if (>= length 0 ) length)))
28+ (when (>= length 0 ) length)))
3129
3230(defn- get-client-cert
3331 " Returns the SSL client certificate of the request, if one exists."
You can’t perform that action at this time.
0 commit comments