diff options
author | Munyoki Kilyungi | 2024-09-02 09:26:59 +0300 |
---|---|---|
committer | BonfaceKilz | 2024-09-05 16:39:14 +0300 |
commit | 3fe11df19d4f7c1a60a3180e06dd592fdc32f1f1 (patch) | |
tree | 9497e2b246bf57fa0fe5b293d7d7946611f8ab22 /scripts/laminar/hooks.json | |
parent | 74337eb0c3df90215e029989ac01679f75dbd58a (diff) | |
download | genenetwork3-3fe11df19d4f7c1a60a3180e06dd592fdc32f1f1.tar.gz |
Use the correct header to request json-ld data.
In HTTP, we use content negotiation to server different
representations of a resource to the same URI to help the user agent
specify which representation is best suited for the user:
<https://developer.mozilla.org/en-US/docs/Web/HTTP/Content_negotiation>
The "Accept" requet HTTP indicates which content types the user is
supposed to understand:
<https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Accept>
* gn3/api/metadata_api/wiki.py (get_wiki_entries): Use the "Accept"
header.
Signed-off-by: Munyoki Kilyungi <me@bonfacemunyoki.com>
Diffstat (limited to 'scripts/laminar/hooks.json')
0 files changed, 0 insertions, 0 deletions