Add auth headers

This commit is contained in:
Matthew Burnett 2018-04-20 11:46:44 -04:00
parent dd16e6eaf5
commit 19fd8418d7

View file

@ -129,7 +129,7 @@ public override UploadResult Upload(Stream stream, string fileName)
role = "READER"
};
result.Response = SendRequest(HttpMethod.POST, uploadurl, stream, contentType, args);
result.Response = SendRequest(HttpMethod.POST, uploadurl, stream, contentType, args, googleAuth.GetAuthHeaders());
string responsename = JsonConvert.DeserializeObject<GoogleCloudStorageResponse>(result.Response).name;
if (responsename == fileName)