Skip to content

Commit

Permalink
SSE mediaType comes null after first consumed event
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Bescos Gascon <jorge.bescos.gascon@oracle.com>
  • Loading branch information
jbescos committed Jun 28, 2024
1 parent ccee4c6 commit e567d3e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023 Oracle and/or its affiliates.
* Copyright (c) 2023, 2024 Oracle and/or its affiliates.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -71,7 +71,7 @@ public <X extends Source<SseEvent>> void handle(X source, HttpClientResponse res
sseBuilder.data(data.toString());
source.onEvent(sseBuilder.build());
data.setLength(0);
sseBuilder = SseEvent.builder();
sseBuilder = SseEvent.builder().mediaContext(mediaContext);
emit = false;
}
continue;
Expand Down

0 comments on commit e567d3e

Please sign in to comment.