Skip to content

Commit a502765

Browse files
feat: make oembed requests default to json type (#43)
1 parent 12d3422 commit a502765

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lambda/oembed/oembed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function handler(event, context, callback) {
2020
const host = getHostname(event, context);
2121
const params = event.queryStringParameters;
2222

23-
if (params.format !== 'json') {
23+
if (params.format === 'xml') {
2424
return callback(
2525
null,
2626
incorrectParams('unsupported format, only json is supported'),

0 commit comments

Comments
 (0)