Add user agent string

This commit is contained in:
Antony Corbett
2023-01-26 13:49:42 +00:00
parent 3dcc35be97
commit 91c93e68b5
@@ -23,6 +23,7 @@ namespace QuestPDF.Examples
url += "?grayscale";
using var client = new WebClient();
client.Headers.Add("user-agent", "QuestPDF/1.0 Unit Testing");
var response = client.DownloadData(url);
container.Image(response);
}