Skip to content

Commit

Permalink
Fixes #39586. Properly use headers from RestMulti when the datasource…
Browse files Browse the repository at this point in the history
… is empty.

Signed-off-by: Pierre Adam <[email protected]>
  • Loading branch information
PierreAdam committed Mar 20, 2024
1 parent 7eb8479 commit cb348fb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ private List<StreamingResponseCustomizer> determineCustomizers(boolean isFirst)
@Override
public void onComplete() {
if (!hadItem) {
StreamingUtil.setHeaders(requestContext, requestContext.serverResponse(), staticCustomizers);
StreamingUtil.setHeaders(requestContext, requestContext.serverResponse(), this.determineCustomizers(true));
}
if (json) {
String postfix = onCompleteText();
Expand Down

0 comments on commit cb348fb

Please sign in to comment.