Skip to content

Commit

Permalink
Merge pull request #947 from alesvi/master
Browse files Browse the repository at this point in the history
Adding a User-Agent header to the request done in FileSystem.ReadFileAsText
  • Loading branch information
tbombach committed Apr 21, 2016
2 parents 91d73c6 + f277902 commit b6ee9ef
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions AutoRest/AutoRest.Core/Utilities/FileSystem.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ public string ReadFileAsText(string path)
{
using (var client = new WebClient())
{
client.Headers.Add("User-Agent: AutoRest");
return client.DownloadString(path);
}
}
Expand Down

0 comments on commit b6ee9ef

Please sign in to comment.