Skip to content

Commit 6de4d14

Browse files
committed
Added User-Agent header to sample code for fetching integration config
1 parent a84e571 commit 6de4d14

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Documentation/IntegrationConfigProvider.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ private static void RefreshCache(bool init)
6565
{
6666
HttpWebRequest request = (HttpWebRequest)WebRequest.Create(configUrl);
6767
request.Headers.Add("api-key", _apiKey);
68+
request.Headers.Add("User-Agent", "queueit-connector");
6869
request.Timeout = _downloadTimeoutMS;
6970
using (HttpWebResponse response = (HttpWebResponse)request.GetResponse())
7071
{

0 commit comments

Comments
 (0)