Skip to content

Commit 8592c8c

Browse files
authored
Fix usage of HTTP header in nanoCLR install (#177)
***NO_CI***
1 parent 9cb7eff commit 8592c8c

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

MetadataProcessor.Tests/Core/ClrIntegrationTests.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
//
2-
// Copyright (c) .NET Foundation and Contributors
3-
// See LICENSE file in the project root for full license information.
4-
//
1+
// Licensed to the .NET Foundation under one or more agreements.
2+
// The .NET Foundation licenses this file to you under the MIT license.
3+
4+
// Original work from Oleg Rakhmatulin.
55

66
using System;
77
using System.ComponentModel;
@@ -71,7 +71,7 @@ public static void InstallNanoClr(TestContext context)
7171
client.DefaultRequestHeaders.Add("User-Agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.110 Safari/537.36");
7272

7373
// Set any additional headers, if needed.
74-
client.DefaultRequestHeaders.Add("Content-Type", "application/json");
74+
client.DefaultRequestHeaders.Add("Accept", "application/json");
7575

7676
// Set the URL to request.
7777
string url = "https://api.nuget.org/v3-flatcontainer/nanoclr/index.json";

0 commit comments

Comments
 (0)