@@ -64,7 +64,7 @@ std::string MapToString(const std::map<std::string, std::string> object) {
64
64
json << name_value.second << " \" " ;
65
65
first = false ;
66
66
}
67
- json << " \n } ]" ;
67
+ json << " \n } ]\n\n " ;
68
68
return json.str ();
69
69
}
70
70
@@ -250,7 +250,7 @@ class AgentImpl {
250
250
void WaitForFrontendMessage ();
251
251
void NotifyMessageReceived ();
252
252
State ToState (State state);
253
- void SendTargentsListResponse (InspectorSocket* socket);
253
+ void SendListResponse (InspectorSocket* socket);
254
254
bool RespondToGet (InspectorSocket* socket, const std::string& path);
255
255
256
256
uv_sem_t start_sem_;
@@ -677,7 +677,7 @@ void AgentImpl::OnRemoteDataIO(InspectorSocket* socket,
677
677
}
678
678
}
679
679
680
- void AgentImpl::SendTargentsListResponse (InspectorSocket* socket) {
680
+ void AgentImpl::SendListResponse (InspectorSocket* socket) {
681
681
std::map<std::string, std::string> response;
682
682
response[" description" ] = " node.js instance" ;
683
683
response[" faviconUrl" ] = " https://nodejs.org/static/favicon.ico" ;
@@ -710,7 +710,7 @@ bool AgentImpl::RespondToGet(InspectorSocket* socket, const std::string& path) {
710
710
return false ;
711
711
712
712
if (match_path_segment (command, " list" ) || command[0 ] == ' \0 ' ) {
713
- SendTargentsListResponse (socket);
713
+ SendListResponse (socket);
714
714
return true ;
715
715
} else if (match_path_segment (command, " protocol" )) {
716
716
SendProtocolJson (socket);
0 commit comments