added environment variables for ProxyFix

This commit is contained in:
Alok Saldanha
2021-02-13 16:42:34 -05:00
parent 01dccef7db
commit f1f4b0c0ca
5 changed files with 41 additions and 20 deletions
+3 -9
View File
@@ -171,15 +171,11 @@ class CacheEntry:
cellxgene_response = get(full_path, headers=headers)
elif request.method == "PUT":
cellxgene_response = put(
full_path,
headers=headers,
data=request.data,
full_path, headers=headers, data=request.data,
)
elif request.method == "POST":
cellxgene_response = post(
full_path,
headers=headers,
data=request.data,
full_path, headers=headers, data=request.data,
)
else:
raise CellxgeneException(
@@ -199,9 +195,7 @@ class CacheEntry:
resp_headers[h] = cellxgene_response.headers[h]
gateway_response = make_response(
gateway_content,
cellxgene_response.status_code,
resp_headers,
gateway_content, cellxgene_response.status_code, resp_headers,
)
return gateway_response