8000 [Modify] Put it back · ctrl-labs/websocket-sharp-unity@eedd814 · GitHub
[go: up one dir, main page]

Skip to content
This repository was archived by the owner on Aug 12, 2021. It is now read-only.

Commit eedd814

Browse files
committed
[Modify] Put it back
1 parent d1c5f0b commit eedd814

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

websocket-sharp/Server/WebSocketBehavior.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,9 @@ public Func<string, bool> OriginValidator {
319319
/// </exception>
320320
public string Protocol {
321321
get {
322-
return _protocol ?? String.Empty;
322+
return _websocket != null
323+
? _websocket.Protocol
324+
: (_protocol ?? String.Empty);
323325
}
324326

325327
set {

0 commit comments

Comments
 (0)
0