Skip to content

Commit 721d12b

Browse files
committed
Update oembed.js
1 parent 0a0827f commit 721d12b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api/oembed.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export default function handler(request, response) {
33

44
const query = request.query;
55

6-
const isJSON = query.format ? query.format === 'json' : false;
6+
const isJSON = query.format ? query.format.toLowerCase() === 'json' : false;
77

88

99
let resp;

0 commit comments

Comments
 (0)