Skip to content

Commit

Permalink
Adding a User-Agent header to the request done in FileSystem.ReadFile…
Browse files Browse the repository at this point in the history
…AsText
  • Loading branch information
aescribano committed Apr 14, 2016
1 parent 296bb25 commit b6bf4cc
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 b6bf4cc

Please sign in to comment.