mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 18:01:36 +00:00
Fix 100MB file uploads (#1117)
See: https://github.com/googleapis/google-api-python-client/issues/803
This commit is contained in:
@@ -6,5 +6,5 @@ google-api-python-client>=1.7.10
|
||||
google-auth>=1.11.2
|
||||
google-auth-httplib2
|
||||
google-auth-oauthlib>=0.4.1
|
||||
httplib2>=0.13.0
|
||||
httplib2>=0.17.0
|
||||
passlib>=1.7.2; sys_platform == 'win32'
|
||||
|
||||
@@ -29,11 +29,13 @@ def create_http(cache=None,
|
||||
"""
|
||||
tls_minimum_version = override_min_tls if override_min_tls else GC_Values[GC_TLS_MIN_VERSION]
|
||||
tls_maximum_version = override_max_tls if override_max_tls else GC_Values[GC_TLS_MAX_VERSION]
|
||||
return httplib2.Http(ca_certs=GC_Values[GC_CA_FILE],
|
||||
tls_maximum_version=tls_maximum_version,
|
||||
tls_minimum_version=tls_minimum_version,
|
||||
cache=cache,
|
||||
timeout=timeout)
|
||||
httpObj = httplib2.Http(ca_certs=GC_Values[GC_CA_FILE],
|
||||
tls_maximum_version=tls_maximum_version,
|
||||
tls_minimum_version=tls_minimum_version,
|
||||
cache=cache,
|
||||
timeout=timeout)
|
||||
httpObj.redirect_codes = set(httpObj.redirect_codes) - {308}
|
||||
return httpObj
|
||||
|
||||
|
||||
def create_request(http=None):
|
||||
|
||||
Reference in New Issue
Block a user