Skip to content

Commit

Permalink
PR 3829 feedback (#3838)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenriksson authored Apr 27, 2017
1 parent d0d025d commit 547931a
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,8 +173,8 @@ private async Task<string> CreateVerificationKey(string apiKey, string packageId
var request = WebRequest.Create(UrlHelper.V2FeedRootUrl + route);
request.Method = "POST";
request.ContentLength = 0;
request.Headers.Add("X-NuGet-ApiKey", apiKey);
request.Headers.Add("X-NuGet-Client-Version", "NuGetGallery.FunctionalTests");
request.Headers.Add(Constants.NuGetHeaderApiKey, apiKey);
request.Headers.Add(Constants.NuGetHeaderClientVersion, "NuGetGallery.FunctionalTests");

var response = await request.GetResponseAsync() as HttpWebResponse;
Assert.NotNull(response);
Expand Down Expand Up @@ -202,7 +202,7 @@ private async Task<HttpStatusCode> VerifyPackageKey(string apiKey, string packag
$"verifykey/{packageId}/{packageVersion}";

var request = WebRequest.Create(UrlHelper.V2FeedRootUrl + route);
request.Headers.Add("X-NuGet-ApiKey", apiKey);
request.Headers.Add(Constants.NuGetHeaderApiKey, apiKey);

try
{
Expand Down

0 comments on commit 547931a

Please sign in to comment.