Skip to content

Commit

Permalink
chore(transcoding): cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
zZHorizonZz authored Apr 19, 2024
1 parent 968cea6 commit 89fdbd5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,6 @@ public void cancel() {
}

private Future<Void> writeMessage(GrpcMessage message, boolean end) {

if (cancelled) {
throw new IllegalStateException("The stream has been cancelled");
}
Expand All @@ -164,6 +163,7 @@ private Future<Void> writeMessage(GrpcMessage message, boolean end) {
responseHeaders.add(header.getKey(), header.getValue());
}
}

responseHeaders.set("content-type", "application/json");
}

Expand Down

0 comments on commit 89fdbd5

Please sign in to comment.