Skip to content

Commit 0c31f95

Browse files
committed
Improved CURL sample
1 parent cb0fbc4 commit 0c31f95

3 files changed

Lines changed: 19 additions & 13 deletions

File tree

samples/features/sql-clr/Curl/Curl.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ private static void AddHeader(SqlChars H, WebClient client)
7575
{
7676
var header = H.ToSqlString().Value;
7777
if (!string.IsNullOrWhiteSpace(header))
78-
client.Headers.Add(header);
78+
foreach(string h in header.Split(';'))
79+
client.Headers.Add(h);
7980
}
8081
}
8182
};

0 commit comments

Comments
 (0)