mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-01 09:47:22 +13:00
Add auth headers
This commit is contained in:
parent
dd16e6eaf5
commit
19fd8418d7
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue