Skip to content

Conversation

Copy link

Copilot AI commented Feb 3, 2026

TinyPEN was rejecting requests with Content-Type: application/json+ld, causing failures for JSON-LD clients.

Changes

  • app.js: Configure express.json() to accept both application/json and application/json+ld

    app.use(express.json({ type: ['application/json', 'application/json+ld'] }))
  • tests/content-type.test.js: Add test coverage for all endpoints with JSON-LD content type

Original prompt

This section details on the original issue you should resolve

<issue_title>application/json+ld</issue_title>
<issue_description>TinyPEN should understand and support this Content-Type.</issue_description>

Comments on the Issue (you are @copilot in this section)


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: cubap <1119165+cubap@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for application/json+ld Content-Type Add application/json+ld content type support Feb 3, 2026
Copilot AI requested a review from cubap February 3, 2026 16:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

application/json+ld

2 participants