Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Azure#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
tbombach committed Apr 21, 2016

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
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
@@ -17,6 +17,7 @@ public string ReadFileAsText(string path)
{
using (var client = new WebClient())
{
client.Headers.Add("User-Agent: AutoRest");
return client.DownloadString(path);
}
}

0 comments on commit b6ee9ef

Please sign in to comment.