Title: Conneg ignores Accept header priority · Issue #71 · JavaScriptSolidServer/JavaScriptSolidServer · GitHub
Open Graph Title: Conneg ignores Accept header priority · Issue #71 · JavaScriptSolidServer/JavaScriptSolidServer
X Title: Conneg ignores Accept header priority · Issue #71 · JavaScriptSolidServer/JavaScriptSolidServer
Description: Summary Content negotiation returns text/turtle regardless of the order specified in the Accept header. Steps to Reproduce curl -I 'https://example.com/' -H 'Accept: application/ld+json, text/turtle, application/json' Expected: Content-T...
Open Graph Description: Summary Content negotiation returns text/turtle regardless of the order specified in the Accept header. Steps to Reproduce curl -I 'https://example.com/' -H 'Accept: application/ld+json, text/turtl...
X Description: Summary Content negotiation returns text/turtle regardless of the order specified in the Accept header. Steps to Reproduce curl -I 'https://example.com/' -H 'Accept: application/ld+json...
Opengraph URL: https://github.com/JavaScriptSolidServer/JavaScriptSolidServer/issues/71
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Conneg ignores Accept header priority","articleBody":"## Summary\n\nContent negotiation returns `text/turtle` regardless of the order specified in the Accept header.\n\n## Steps to Reproduce\n\n```bash\ncurl -I 'https://example.com/' -H 'Accept: application/ld+json, text/turtle, application/json'\n```\n\n**Expected:** `Content-Type: application/ld+json` (first in list)\n\n**Actual:** `Content-Type: text/turtle`\n\n## Workaround\n\nRequest only the desired type:\n```bash\ncurl -I 'https://example.com/' -H 'Accept: text/html'\n```\n\nThis correctly returns `Content-Type: text/html`.\n\n## Impact\n\n- Clients cannot reliably request preferred content types\n- WebID-TLS verification fails when expecting JSON-LD but receiving Turtle (see #70)\n- Breaks standard HTTP content negotiation behavior per [RFC 7231](https://datatracker.ietf.org/doc/html/rfc7231#section-5.3.2)\n\n## Environment\n\n- JSS v0.0.75","author":{"url":"https://github.com/melvincarvalho","@type":"Person","name":"melvincarvalho"},"datePublished":"2026-01-09T12:55:36.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/71/JavaScriptSolidServer/issues/71"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:a658338e-9351-bc20-dadd-fc65031c732f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B4AE:2C338B:466F08:61359B:69774E19 |
| html-safe-nonce | 728c19fa9523fc7104ff67883b02f6ba9507db955f88f1a2dd5b58ee9f3f6814 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEFFOjJDMzM4Qjo0NjZGMDg6NjEzNTlCOjY5Nzc0RTE5IiwidmlzaXRvcl9pZCI6IjM2NjM0NzQ2NDg0NjYwMTc4MTgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | aa3c5d1b24768ab7b318bf202a6a0bdf7a87edcd182fd3ecbb0d646298b53cab |
| hovercard-subject-tag | issue:3796854033 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/JavaScriptSolidServer/JavaScriptSolidServer/71/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4b55bca41b3414fdad7a8f8ceac8a5fa9ad6d713c027f75ae4fb67fb643b720c/JavaScriptSolidServer/JavaScriptSolidServer/issues/71 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4b55bca41b3414fdad7a8f8ceac8a5fa9ad6d713c027f75ae4fb67fb643b720c/JavaScriptSolidServer/JavaScriptSolidServer/issues/71 |
| og:image:alt | Summary Content negotiation returns text/turtle regardless of the order specified in the Accept header. Steps to Reproduce curl -I 'https://example.com/' -H 'Accept: application/ld+json, text/turtl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | melvincarvalho |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3310064f35a62c06a4024ba37f41c06836f39376a095c2dfd2c4b693c34965be |
| turbo-cache-control | no-preview |
| go-import | github.com/JavaScriptSolidServer/JavaScriptSolidServer git https://github.com/JavaScriptSolidServer/JavaScriptSolidServer.git |
| octolytics-dimension-user_id | 205442424 |
| octolytics-dimension-user_login | JavaScriptSolidServer |
| octolytics-dimension-repository_id | 958025407 |
| octolytics-dimension-repository_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 958025407 |
| octolytics-dimension-repository_network_root_nwo | JavaScriptSolidServer/JavaScriptSolidServer |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 67d5f8d1d53c3cc4f49fc3bb8029933c3dc219e6 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width