Skip to content

Commit

Permalink
Fixed the HttpWebResponse extension
Browse files Browse the repository at this point in the history
  • Loading branch information
info authored and info committed Jan 30, 2017
1 parent 648d870 commit e49475e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WebLinksNet/HttpWebResponseExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ public static class HttpWebResponseExtension
/// <param name="webResponse"></param>
public static WebLinksCollection GetWebLinks(this HttpWebResponse webResponse)
{
if (!webResponse.Headers.AllKeys.Contains("Links"))
if (!webResponse.Headers.AllKeys.Contains("Link"))
{
return null;
}

return WebLinksCollection.Parse(webResponse.Headers["Links"]);
return WebLinksCollection.Parse(webResponse.Headers["Link"]);
}
}
}

0 comments on commit e49475e

Please sign in to comment.