diff --git a/app/api/endpoints/page.mdx b/app/api/endpoints/page.mdx index ba90209..ca7bc92 100644 --- a/app/api/endpoints/page.mdx +++ b/app/api/endpoints/page.mdx @@ -37,7 +37,7 @@ export const metadata = { ```http {{ 'title': 'Example response' }} HTTP/1.1 200 OK - Content-Type: application/vnd.versia+json + Content-Type: application/vnd.versia+json; charset=utf-8 { "type": "InstanceMetadata", @@ -81,7 +81,7 @@ export const metadata = { ```http {{ 'title': 'Example response' }} HTTP/1.1 200 OK - Content-Type: application/vnd.versia+json + Content-Type: application/vnd.versia+json; charset=utf-8 { "type": "User", @@ -125,7 +125,7 @@ export const metadata = { ```http {{ 'title': 'Example response' }} HTTP/1.1 200 OK - Content-Type: application/vnd.versia+json + Content-Type: application/vnd.versia+json; charset=utf-8 { "type": "Followers", @@ -173,7 +173,7 @@ The delivery mechanism is described further in the [Federation](/federation) doc POST /.versia/v0.6/inbox Host: b.social Accept: application/vnd.versia+json - Content-Type: application/vnd.versia+json + Content-Type: application/vnd.versia+json; charset=utf-8 { "type": "Note", diff --git a/app/federation/discovery/page.mdx b/app/federation/discovery/page.mdx index b56a945..f67b931 100644 --- a/app/federation/discovery/page.mdx +++ b/app/federation/discovery/page.mdx @@ -24,7 +24,7 @@ Accept: application/jrd+json { "subject": "acct:george@versia.social", // [!code focus:6] "aliases": [ - "https://versia.social/users/018ec082-0ae1-761c-b2c5-22275a611771", + "https://versia.social/.versia/v0.6/entities/User/018ec082-0ae1-761c-b2c5-22275a611771", "https://versia.social/@george" ], "links": [ @@ -35,8 +35,8 @@ Accept: application/jrd+json }, { // [!code focus:5] "rel": "self", - "type": "application/json", - "href": "https://versia.social/users/018ec082-0ae1-761c-b2c5-22275a611771" + "type": "application/vnd.versia+json", + "href": "https://versia.social/.versia/v0.6/entities/User/018ec082-0ae1-761c-b2c5-22275a611771" }, { "rel": "http://webfinger.net/rel/avatar", diff --git a/app/signatures/page.mdx b/app/signatures/page.mdx index 20aab26..e1b4b49 100644 --- a/app/signatures/page.mdx +++ b/app/signatures/page.mdx @@ -116,7 +116,7 @@ const headers = new Headers(); headers.set("Versia-Signed-By", "bob.com"); headers.set("Versia-Signed-At", timestamp); headers.set("Versia-Signature", base64Signature); -headers.set("Content-Type", "application/json"); +headers.set("Content-Type", "application/vnd.versia+json; charset=utf-8"); const response = await fetch("https://alice.com/.versia/v0.6/inbox", { method: "POST",