Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Feb 3, 2026

Upgrades all TinyPEN API requests to use application/ld+json content type instead of application/json, aligning with JSON-LD semantics.

Changes

Updated Content-Type header in database/tiny/controller.js:

  • find() - query endpoint
  • save() - create endpoint
  • update() - update endpoint
  • overwrite() - overwrite endpoint
  • remove() - delete endpoint
// Before
headers: {
    'Content-Type': 'application/json; charset=utf-8'
}

// After
headers: {
    'Content-Type': 'application/ld+json; charset=utf-8'
}

Note: Requires corresponding TinyPEN service support (tracked in CenterForDigitalHumanities/TinyPen#9).

Original prompt

This section details on the original issue you should resolve

<issue_title>TinyController application/json+ld Content Type</issue_title>
<issue_description>Upgrade TinyPEN requests to have the content-type "application/json+ld".

At this moment, this is breaking change. This issues is blocked by CenterForDigitalHumanities/TinyPen#9</issue_description>

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


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: cubap <1119165+cubap@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade TinyPEN requests to application/json+ld content type Update TinyPEN controller to use application/ld+json Content-Type Feb 3, 2026
Copilot AI requested a review from cubap February 3, 2026 16:07
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.

TinyController application/json+ld Content Type

2 participants