Skip to content

Commit

Permalink
Update ZoomEyeClient.java
Browse files Browse the repository at this point in the history
  • Loading branch information
bit4woo committed Oct 25, 2024
1 parent bfe2039 commit 3d36592
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/InternetSearch/Client/ZoomEyeClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ public List<SearchResultEntry> parseResp(String respbody) {
String serviceName = entryitem.getJSONObject("portinfo").getString("service");
entry.setProtocol(serviceName);

JSONArray titleArray = entryitem.getJSONObject("portinfo").getJSONArray("title");
if (titleArray != null) {
entry.setTitle(titleArray.getString(0));
String title = entryitem.getJSONObject("portinfo").getString("title");
if (title != null) {
entry.setTitle(title);
}

entry.setSource(getEngineName());
Expand Down

0 comments on commit 3d36592

Please sign in to comment.