Skip to content

Commit

Permalink
parse logId
Browse files Browse the repository at this point in the history
  • Loading branch information
slominskir committed Nov 5, 2024
1 parent 5292d4b commit 2ca4170
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/main/java/org/jlab/jlog/LogItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -890,12 +890,9 @@ long performHttpPutToServer() throws LogIOException,
.PUT(HttpRequest.BodyPublishers.ofString(xml))
.build();

HttpResponse<String> response = httpClient.send(request, HttpResponse.BodyHandlers.ofString());
HttpResponse<InputStream> response = httpClient.send(request, HttpResponse.BodyHandlers.ofInputStream());

System.err.println(response.body());

id = 0;
//id = parseServerResponse(response.body());
id = parseServerResponse(response.body());

/*URL url = new URL(putUrl);
con = (HttpsURLConnection) url.openConnection();
Expand Down

0 comments on commit 2ca4170

Please sign in to comment.