about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-09-29 11:56:34 -0500
committerFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-09-29 11:56:34 -0500
commit0ff011eca058af310d7c56093f390174bc10df10 (patch)
treefdc5ef2b892f27695effc9254462bd9c3f8a9cfc
parent1303da15a9476810863a66056eb621baa7628961 (diff)
downloadgn-uploader-0ff011eca058af310d7c56093f390174bc10df10.tar.gz
Add "Accept" header for content negotiation. HEAD main
-rw-r--r--scripts/load_phenotypes_to_db.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/load_phenotypes_to_db.py b/scripts/load_phenotypes_to_db.py
index 31eb715..72cd641 100644
--- a/scripts/load_phenotypes_to_db.py
+++ b/scripts/load_phenotypes_to_db.py
@@ -212,7 +212,8 @@ def update_auth(# pylint: disable=[too-many-locals,too-many-positional-arguments
     _delay = 1
     headers = {
         "Authorization": f"Bearer {token}",
-        "Content-Type": "application/json"
+        "Content-Type": "application/json",
+        "Accept": "application/json"
     }
     def authserveruri(endpoint):
         return urljoin(authserver, endpoint)