mirror of
https://github.com/ShareX/ShareX.git
synced 2024-10-02 18:26:27 +13:00
Fixed missing header for dev version of Nextcloud
Overlooked this in my last commit since it worked fine without it at in the non dev version.
This commit is contained in:
parent
6b68893912
commit
b00ca3ee75
1 changed files with 3 additions and 0 deletions
|
@ -139,7 +139,10 @@ public string ShareFile(string path)
|
||||||
|
|
||||||
string url = URLHelpers.CombineURL(Host, "ocs/v1.php/apps/files_sharing/api/v1/shares?format=json");
|
string url = URLHelpers.CombineURL(Host, "ocs/v1.php/apps/files_sharing/api/v1/shares?format=json");
|
||||||
url = URLHelpers.FixPrefix(url);
|
url = URLHelpers.FixPrefix(url);
|
||||||
|
|
||||||
NameValueCollection headers = CreateAuthenticationHeader(Username, Password);
|
NameValueCollection headers = CreateAuthenticationHeader(Username, Password);
|
||||||
|
headers["OCS-APIREQUEST"] = "true";
|
||||||
|
|
||||||
string response = SendRequestMultiPart(url, args, headers);
|
string response = SendRequestMultiPart(url, args, headers);
|
||||||
|
|
||||||
if (!string.IsNullOrEmpty(response))
|
if (!string.IsNullOrEmpty(response))
|
||||||
|
|
Loading…
Reference in a new issue