Skip to content

Commit be73e5c

Browse files
committed
Fix bug with grpc decompression in body formatting
The headers field is optional, and we didn't actually provide it in this case, and grpc decompression would fail without that metadata.
1 parent 87eb88c commit be73e5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/editor/content-viewer.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ export class ContentViewer extends React.Component<ContentViewerProps> {
143143
const cachedValue = cache.get(cacheKey) as ObservablePromise<string> | string | undefined;
144144

145145
const renderingContent = cachedValue ||
146-
this.formatter.render(this.contentBuffer) as ObservablePromise<string> | string;
146+
this.formatter.render(this.contentBuffer, this.props.headers) as ObservablePromise<string> | string;
147147
if (!cachedValue) cache.set(cacheKey, renderingContent);
148148

149149
if (typeof renderingContent === 'string') {

0 commit comments

Comments
 (0)