File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/org/tinystruct/net/handlers Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -285,7 +285,7 @@ public HTTPResponse(HttpResponse<InputStream> response) {
285285 this .body = new String (decodedStream .readAllBytes (), StandardCharsets .UTF_8 );
286286 decodedStream .close ();
287287 } else {
288- this .body = "" ;
288+ this .body = null ;
289289 }
290290 } catch (IOException e ) {
291291 throw new ApplicationRuntimeException (e );
@@ -298,7 +298,7 @@ public HTTPResponse(HttpResponse<InputStream> response) {
298298 public HTTPResponse (HttpResponse <InputStream > response , Consumer <String > onMessage ) {
299299 this .statusCode = response .statusCode ();
300300 this .headers = response .headers ().map ();
301- this .body = "" ; // SSE mode does not return the entire body content.
301+ this .body = null ; // SSE mode does not return the entire body content.
302302
303303 handleSSE (response , onMessage );
304304 }
You can’t perform that action at this time.
0 commit comments