diff options
author | Brandon West <brawest@gmail.com> | 2014-10-07 11:17:44 -0600 |
---|---|---|
committer | Brandon West <brawest@gmail.com> | 2014-10-07 11:17:44 -0600 |
commit | c8bbb307de6ab5d571797d2f210a0ec0f5531d3a (patch) | |
tree | 4991461837a05f3a4cb7e1f9780a0c9cd088e1f0 | |
parent | 0ef223cdd09e8c2ab6de7a8c03c758033785611f (diff) | |
parent | f91edb14df412278604685d19ceff190e6550572 (diff) | |
download | sendgrid-csharp-c8bbb307de6ab5d571797d2f210a0ec0f5531d3a.zip sendgrid-csharp-c8bbb307de6ab5d571797d2f210a0ec0f5531d3a.tar.gz sendgrid-csharp-c8bbb307de6ab5d571797d2f210a0ec0f5531d3a.tar.bz2 |
Merge pull request #86 from sendgrid/useragent
Add useragent
-rw-r--r-- | SendGrid/SendGridMail/Transport/Web.cs | 4 |
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 +}
|