Fix JSON responses from micropub endpoint

This commit is contained in:
2024-02-24 08:54:44 +11:00
parent 2c11fda9ce
commit c57cb62917
2 changed files with 2 additions and 2 deletions

View File

@@ -8,7 +8,7 @@ module Micropub
def handle(req, res)
if req.params[:q] == "config"
res.status = 200
res.content_type = "application/json"
res.content_type = "Application/JSON"
res.body = {
"media-endpoint" => settings.micropub_media_endpoint,
"destination" => [