We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3fe0a7b + b74fff7 commit 08309cbCopy full SHA for 08309cb
src/WebApiContrib.Core.Formatter.Csv/CsvOutputFormatter.cs
@@ -149,7 +149,7 @@ public async override Task WriteResponseBodyAsync(OutputFormatterWriteContext co
149
}
150
151
152
- await streamWriter.WriteLineAsync(valueLine.TrimEnd(_options.CsvDelimiter.ToCharArray()));
+ await streamWriter.WriteLineAsync(valueLine.Remove(valueLine.Length - _options.CsvDelimiter.Length));
153
154
155
await streamWriter.FlushAsync();
0 commit comments