Update the Chocolatey push URL (#538)

This commit is contained in:
Natalie Weizenbaum 2018-12-06 17:08:59 -08:00 committed by GitHub
parent dad8491035
commit cc009fb235
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -107,7 +107,7 @@ updateChocolatey() async {
SecurityContext.defaultContext.setTrustedCertificates("tool/godaddy.pem"); SecurityContext.defaultContext.setTrustedCertificates("tool/godaddy.pem");
var request = http.MultipartRequest( var request = http.MultipartRequest(
"PUT", Uri.parse("https://push.chocolatey.org/api/v2/package")); "PUT", Uri.parse("https://chocolatey.org/api/v2/package"));
request.headers["X-NuGet-Protocol-Version"] = "4.1.0"; request.headers["X-NuGet-Protocol-Version"] = "4.1.0";
request.headers["X-NuGet-ApiKey"] = environment("CHOCO_TOKEN"); request.headers["X-NuGet-ApiKey"] = environment("CHOCO_TOKEN");
request.files.add(await http.MultipartFile.fromPath( request.files.add(await http.MultipartFile.fromPath(