Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
atdixon committed Jan 5, 2023
1 parent 54ea91e commit 6444a68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/me/untethr/nostr/jetty.clj
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,8 @@
(defn websocket-request?
[^HttpServletRequest req]
(and
(.equalsIgnoreCase (.getHeader req "Connection") "upgrade")
(.equalsIgnoreCase (.getHeader req "Upgrade") "websocket")))
(some-> req (.getHeader "Connection") (.equalsIgnoreCase "upgrade"))
(some-> req (.getHeader "Upgrade") (.equalsIgnoreCase "websocket"))))

(defn create-websocket-upgrade-servlet [^JettyWebSocketCreator websocket-creator]
;; @see https://www.eclipse.org/jetty/documentation/jetty-11/programming-guide/index.html#pg-server-websocket-jetty-endpoints
Expand Down

0 comments on commit 6444a68

Please sign in to comment.