From 41c5cbdaca4972b0f1bda92ebfa96e88d652cc76 Mon Sep 17 00:00:00 2001 From: Ankit Chaurasia <8670962+sunank200@users.noreply.github.com> Date: Fri, 7 Apr 2023 15:25:11 +0545 Subject: [PATCH] Add the content type for post calls --- fivetran_provider/hooks/fivetran.py | 1 + 1 file changed, 1 insertion(+) diff --git a/fivetran_provider/hooks/fivetran.py b/fivetran_provider/hooks/fivetran.py index 7ca52ff..2e5cda9 100644 --- a/fivetran_provider/hooks/fivetran.py +++ b/fivetran_provider/hooks/fivetran.py @@ -112,6 +112,7 @@ def _do_api_call(self, endpoint_info, json=None): request_func = requests.get elif method == "POST": request_func = requests.post + headers.update({"Content-Type": "application/json;version=2"}) elif method == "PATCH": request_func = requests.patch headers.update({"Content-Type": "application/json;version=2"})