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:
aStonedPenguin 2016-12-29 15:53:53 -09:00 committed by GitHub
parent 6b68893912
commit b00ca3ee75

View file

@ -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");
url = URLHelpers.FixPrefix(url);
NameValueCollection headers = CreateAuthenticationHeader(Username, Password);
headers["OCS-APIREQUEST"] = "true";
string response = SendRequestMultiPart(url, args, headers);
if (!string.IsNullOrEmpty(response))