Skip to content
Snippets Groups Projects
Commit 76fc68a9 authored by Vandan Shah's avatar Vandan Shah Committed by Yannick Tivisse
Browse files

[FIX] google_drive: Use 'get' instead of 'post' in 'copy_doc'

parent a9ede7fd
Branches
Tags
No related merge requests found
......@@ -91,7 +91,7 @@ class GoogleDrive(models.Model):
request_url = "https://www.googleapis.com/drive/v2/files/%s?fields=parents/id&access_token=%s" % (template_id, access_token)
headers = {"Content-type": "application/x-www-form-urlencoded"}
try:
req = requests.post(request_url, headers=headers, timeout=TIMEOUT)
req = requests.get(request_url, headers=headers, timeout=TIMEOUT)
req.raise_for_status()
parents_dict = req.json()
except requests.HTTPError:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment