Skip to content

Commit

Permalink
Rename websocket-request? to upgrade-request?
Browse files Browse the repository at this point in the history
  • Loading branch information
weavejester committed Sep 29, 2023
1 parent 600e277 commit 5a5b8b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ring-core/src/ring/websocket.clj
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@
([socket code reason]
(-close socket code reason)))

(defn websocket-request?
"Returns true if the request map expects a websocket response."
(defn upgrade-request?
"Returns true if the request map is a websocket upgrade request."
[request]
(let [headers (:headers request)]
(and (.equalsIgnoreCase "upgrade" (get headers "connection"))
Expand Down

0 comments on commit 5a5b8b9

Please sign in to comment.