1
0
mirror of https://github.com/rclone/rclone.git synced 2025-12-24 04:04:37 +00:00

vendor: update github.com/dropbox/dropbox-sdk-go-unofficial

This commit is contained in:
Nick Craig-Wood
2017-09-23 11:53:26 +01:00
parent 6390bb2b09
commit 29e2744155
25 changed files with 4222 additions and 1283 deletions

View File

@@ -1,7 +1,7 @@
import os
from stone.generator import CodeGenerator
from stone.data_type import (
from stone.backend import CodeBackend
from stone.ir import (
is_void_type,
is_struct_type
)
@@ -14,7 +14,7 @@ from go_helpers import (
)
class GoClientGenerator(CodeGenerator):
class GoClientBackend(CodeBackend):
def generate(self, api):
for namespace in api.namespaces.values():
if len(namespace.routes) > 0:
@@ -120,7 +120,7 @@ class GoClientGenerator(CodeGenerator):
headers = {}
if not is_void_type(route.arg_data_type):
if host == 'content':
if host == 'content' or style in ['upload', 'download']:
headers["Dropbox-API-Arg"] = "string(b)"
else:
headers["Content-Type"] = '"application/json"'