File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
capabilities-discovery/src/main/java/ai/wanaku/capabilities/sdk/discovery Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff line change @@ -121,13 +121,12 @@ public HttpResponse<String> deregister(ServiceTarget serviceTarget) {
121121 */
122122 public HttpResponse <String > ping (String id ) {
123123 try {
124- String jsonRequestBody = serializer .serialize (id );
125124 URI uri = URI .create (this .baseUrl + this .serviceBasePath + "/ping/" );
126125
127126 HttpRequest request = HttpRequest .newBuilder ()
128127 .uri (uri )
129128 .header ("Authorization" , discoveryAuthenticator .toHeaderValue ())
130- .POST (HttpRequest .BodyPublishers .ofString (jsonRequestBody ))
129+ .POST (HttpRequest .BodyPublishers .ofString (id ))
131130 .build ();
132131
133132 return httpClient .send (request , HttpResponse .BodyHandlers .ofString ());
You can’t perform that action at this time.
0 commit comments