Skip to content

Commit

Permalink
Improve performance of request-protocols function
Browse files Browse the repository at this point in the history
  • Loading branch information
weavejester committed Oct 17, 2023
1 parent 748ec00 commit ef4e9c0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ring-core/src/ring/websocket.clj
Original file line number Diff line number Diff line change
Expand Up @@ -107,5 +107,4 @@
[request]
(some-> (:headers request)
(get "sec-websocket-protocol")
(str/split #",")
(as-> ps (map str/trim ps))))
(str/split #"\s*,\s*")))

0 comments on commit ef4e9c0

Please sign in to comment.