api/handler/rpc: fix corner cases
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
		@@ -44,6 +44,8 @@ func serveWebsocket(ctx context.Context, w http.ResponseWriter, r *http.Request,
 | 
			
		||||
			case "binary":
 | 
			
		||||
				hdr["Sec-WebSocket-Protocol"] = []string{"binary"}
 | 
			
		||||
				op = ws.OpBinary
 | 
			
		||||
			default:
 | 
			
		||||
				op = ws.OpBinary
 | 
			
		||||
			}
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user