We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f071ce commit 558caf5Copy full SHA for 558caf5
packages/event-handler/tests/unit/rest/converters.test.ts
@@ -396,6 +396,18 @@ describe('Converters', () => {
396
expect(result.statusCode).toBe(204);
397
expect(result.body).toBe('');
398
});
399
+
400
+ it('handles compressed response body', async () => {
401
+ const response = new Response('Hello World', {
402
+ status: 200,
403
+ headers: {
404
+ 'content-encoding': 'gzip',
405
+ },
406
+ });
407
408
+ const result = await webResponseToProxyResult(response);
409
+ expect(result.isBase64Encoded).toBe(true);
410
411
412
413
describe('handlerResultToProxyResult', () => {
0 commit comments