Skip to content

Commit

Permalink
Merge pull request #74 from pushkarnk/wrong-message
Browse files Browse the repository at this point in the history
correct the message for noWebSocketKeyHeader and noWebSocketVersionHe…
  • Loading branch information
Pushkar N Kulkarni authored Aug 19, 2018
2 parents 675c351 + d5d53da commit 1066775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/KituraNet/HTTP/HTTPHandler.swift
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,9 @@ public class HTTPHandler: ChannelInboundHandler {
var message: String?
switch error {
case KituraWebSocketUpgradeError.noWebSocketKeyHeader:
message = "Sec-WebSocket-Version header missing in the upgrade request"
case KituraWebSocketUpgradeError.noWebSocketVersionHeader:
message = "Sec-WebSocket-Key header missing in the upgrade request"
case KituraWebSocketUpgradeError.noWebSocketVersionHeader:
message = "Sec-WebSocket-Version header missing in the upgrade request"
case KituraWebSocketUpgradeError.invalidKeyHeaderCount(_):
break
case KituraWebSocketUpgradeError.invalidVersionHeaderCount(_):
Expand Down

0 comments on commit 1066775

Please sign in to comment.