mirror of
https://github.com/simonw/datasette.git
synced 2025-12-10 16:51:24 +01:00
Correct syntax for link headers, closes #2470
This commit is contained in:
parent
6e512caa59
commit
333f786cb0
6 changed files with 7 additions and 7 deletions
|
|
@ -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 (
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue