Skip to content

Commit

Permalink
use correct content-type
Browse files Browse the repository at this point in the history
  • Loading branch information
spcbfr committed Mar 25, 2024
1 parent 6ec9161 commit 53b269d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/api/micropub.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ export async function POST({ request, site, url }: APIContext) {

// TODO: Create note here

if (contentType === "application/json") {
if (contentType === "application/x-www-form-urlencoded") {
let body = new URLSearchParams(await request.text())

const content = body.get('content')
Expand Down

0 comments on commit 53b269d

Please sign in to comment.