Skip to content

Commit

Permalink
Merge pull request #2 from Sheeo/master
Browse files Browse the repository at this point in the history
Added Accept to the list of special headers
  • Loading branch information
prabirshrestha committed Feb 24, 2012
2 parents 3fa409a + 000531e commit 4e9e0b6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/FluentHttp/Core/HttpWebHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,10 @@ protected virtual void SetHttpWebRequestHeaders(IHttpWebRequest httpWebRequest,
httpWebRequest.ContentLength = Convert.ToInt64(value);
#endif
}
else if(name.Equals("accept", StringComparison.OrdinalIgnoreCase))
{
httpWebRequest.Accept = value;
}
else if (name.Equals("user-agent", StringComparison.OrdinalIgnoreCase))
{
httpWebRequest.UserAgent = value;
Expand Down

0 comments on commit 4e9e0b6

Please sign in to comment.