Skip to content
This repository has been archived by the owner on Jun 19, 2023. It is now read-only.

Update the content type for post calls #74

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions fivetran_provider/hooks/fivetran.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"})
Expand Down