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.
2 parents c233a0f + 53e4fad commit 833e153Copy full SHA for 833e153
src/apiGateway.ts
@@ -35,7 +35,12 @@ export function httpRequestToEvent(request: Request): APIGatewayProxyEventV2 {
35
);
36
37
const bodyString = Buffer.isBuffer(request.body) ? request.body.toString('utf8') : '';
38
- const shouldSendBase64 = request.method === 'GET' ? false : bodyString.includes('Content-Disposition: form-data');
+ const shouldSendBase64 = request.method === 'GET'
39
+ ? false
40
+ : (
41
+ bodyString.includes('Content-Disposition: form-data') ||
42
+ (headers['content-disposition']?.startsWith('inline;') === true)
43
+ );
44
45
const cookies = request.headers.cookie ? request.headers.cookie.split('; ') : [];
46
0 commit comments