summaryrefslogtreecommitdiffstats
path: root/SendGrid/SendGridMail
diff options
context:
space:
mode:
authorEddie Zaneski <eddiezane@gmail.com>2014-07-17 13:24:26 -0400
committerEddie Zaneski <eddiezane@gmail.com>2014-07-17 13:24:26 -0400
commitf91edb14df412278604685d19ceff190e6550572 (patch)
treeba003728d908054e31f6fcd9d47d040d0b1a638b /SendGrid/SendGridMail
parent64e62585587bd9c2ef59c6c03f97af67c550b560 (diff)
downloadsendgrid-csharp-f91edb14df412278604685d19ceff190e6550572.zip
sendgrid-csharp-f91edb14df412278604685d19ceff190e6550572.tar.gz
sendgrid-csharp-f91edb14df412278604685d19ceff190e6550572.tar.bz2
Add useragent
Diffstat (limited to 'SendGrid/SendGridMail')
-rw-r--r--SendGrid/SendGridMail/Transport/Web.cs4
1 files changed, 3 insertions, 1 deletions
diff --git a/SendGrid/SendGridMail/Transport/Web.cs b/SendGrid/SendGridMail/Transport/Web.cs
index f241256..6a595c0 100644
--- a/SendGrid/SendGridMail/Transport/Web.cs
+++ b/SendGrid/SendGridMail/Transport/Web.cs
@@ -44,6 +44,8 @@ namespace SendGrid
{
BaseAddress = new Uri("https://" + BaseUrl)
};
+ client.DefaultRequestHeaders.TryAddWithoutValidation("User-Agent", "sendgrid/4.0.1;csharp");
+
var content = new MultipartFormDataContent();
AttachFormParams(message, content);
@@ -210,4 +212,4 @@ namespace SendGrid
#endregion
}
-} \ No newline at end of file
+}