From 8e825e27d6df5203826e56bdd22b954393314d74 Mon Sep 17 00:00:00 2001 From: PH-KDX Date: Mon, 8 May 2023 19:46:57 +0200 Subject: [PATCH] put accept type in http headers instead of parameters --- src/flightplandb/internal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flightplandb/internal.py b/src/flightplandb/internal.py index 0d93165..1664b14 100644 --- a/src/flightplandb/internal.py +++ b/src/flightplandb/internal.py @@ -226,7 +226,7 @@ async def request( ) from exc # then add it to the request headers - params["Accept"] = return_format_encoded + request_headers["Accept"] = return_format_encoded # set auth in headers if key is provided if key is not None: