Minor improvements

This commit is contained in:
Bond_009
2020-09-16 14:16:44 +02:00
parent 6bf0acb854
commit 2dbf73b989
7 changed files with 41 additions and 48 deletions

View File

@@ -43,13 +43,13 @@ namespace Rssdp.Infrastructure
{
var builder = new StringBuilder();
const string argFormat = "{0}: {1}\r\n";
const string ArgFormat = "{0}: {1}\r\n";
builder.AppendFormat("{0}\r\n", header);
foreach (var pair in values)
{
builder.AppendFormat(argFormat, pair.Key, pair.Value);
builder.AppendFormat(ArgFormat, pair.Key, pair.Value);
}
builder.Append("\r\n");