File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -143,11 +143,11 @@ private NodesHotThreadsResponse DeserializeNodesHotThreadResponse(IElasticsearch
143143 var typedResponse = new NodesHotThreadsResponse ( ) ;
144144 var plainTextResponse = Encoding . UTF8 . GetString ( response . ResponseRaw ) ;
145145
146- // If the response doesn't contain :::, which is the pattern that delimits
146+ // If the response doesn't start with :::, which is the pattern that delimits
147147 // each node section in the response, then the response format isn't recognized.
148148 // Just return an empty response object. This is especially useful when unit
149149 // testing against an in-memory connection where you won't get a real response.
150- if ( ! plainTextResponse . Contains ( ":::" ) )
150+ if ( ! plainTextResponse . StartsWith ( ":::" ) )
151151 return typedResponse ;
152152
153153 var sections = plainTextResponse . Split ( new string [ ] { ":::" } , StringSplitOptions . RemoveEmptyEntries ) ;
You can’t perform that action at this time.
0 commit comments