Skip to content

Commit 48d1157

Browse files
chore: remove optional json argument from oembed link (#55)
1 parent 22b8eb2 commit 48d1157

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/lambda/server/server.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,7 @@ function handler(event, context, callback) {
2525
query,
2626
})}`;
2727

28-
const oembedSearch = queryString.stringify({
29-
url: frameSrc,
30-
format: 'json',
31-
});
28+
const oembedSearch = queryString.stringify({ url: frameSrc });
3229

3330
const oembedLink = [
3431
`<link rel="alternate" type="application/json+oembed" href="${host}/oembed?${oembedSearch}" title="Testing Playground" />`,
@@ -42,7 +39,7 @@ function handler(event, context, callback) {
4239

4340
return callback(null, {
4441
statusCode: 200,
45-
body: body,
42+
body,
4643
headers: {
4744
'Cache-Control': 'public, s-maxage=15, stale-while-revalidate=300',
4845
'Content-Type': 'text/html; charset=UTF-8',

0 commit comments

Comments
 (0)