summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrandonmwest <brawest@gmail.com>2012-07-12 16:38:51 -0600
committerbrandonmwest <brawest@gmail.com>2012-07-12 16:38:51 -0600
commit2a9fcb7557b8054ae6550898a9f796f40ec59c75 (patch)
tree18801f9c2d8557ce5782a8c3eff83afca74cbf68
parent4ca49c3a04baee99026a1ea9385a3dcc77686a44 (diff)
downloadsendgrid-csharp-2a9fcb7557b8054ae6550898a9f796f40ec59c75.zip
sendgrid-csharp-2a9fcb7557b8054ae6550898a9f796f40ec59c75.tar.gz
sendgrid-csharp-2a9fcb7557b8054ae6550898a9f796f40ec59c75.tar.bz2
Change line 88 based on this pull request: https://github.com/sendgrid/sendgrid-csharp/pull/6. Fixes this issue: https://github.com/sendgrid/sendgrid-csharp/issues/2
-rwxr-xr-xSendGrid/SendGridMail/Transport/Web.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/SendGrid/SendGridMail/Transport/Web.cs b/SendGrid/SendGridMail/Transport/Web.cs
index 8e0c512..885f482 100755
--- a/SendGrid/SendGridMail/Transport/Web.cs
+++ b/SendGrid/SendGridMail/Transport/Web.cs
@@ -85,7 +85,7 @@ namespace SendGridMail.Transport
private void AttachFiles(ISendGrid message, MultipartEntity multipartEntity)
{
var files = FetchFileBodies(message);
- files.ForEach(kvp => multipartEntity.AddBody(new FileBody("files[" + kvp.Key + "]", kvp.Key, kvp.Value)));
+ files.ForEach(kvp => multipartEntity.AddBody(new FileBody("files[" + Path.GetFileName(kvp.Key) + "]", Path.GetFileName(kvp.Key), kvp.Value)));
}
private void CheckForErrors(CodeScales.Http.Methods.HttpResponse response)