Correct syntax for link headers, closes #2470

This commit is contained in:
Simon Willison 2025-03-09 20:05:43 -05:00
commit 333f786cb0
6 changed files with 7 additions and 7 deletions

View file

@ -1040,7 +1040,7 @@ async def test_alternate_url_json(ds_client, path, expected):
response = await ds_client.get(path)
assert response.status_code == 200
link = response.headers["link"]
assert link == '{}; rel="alternate"; type="application/json+datasette"'.format(
assert link == '<{}>; rel="alternate"; type="application/json+datasette"'.format(
expected
)
assert (