Open
Description
PGP encrypted armored files always contain the "Version" header, also after setting the header value to null (-> "Version: ").
Could you please change this, so that when setting the version header to null it's completely removed?
Proposed change (https://github.com/bcgit/bc-csharp/blob/master/crypto/src/bcpg/ArmoredOutputStream.cs):
Current implementation
public ArmoredOutputStream(Stream outStream, IDictionary<string, string> headers)
: this(outStream)
{
foreach (var header in headers)
{
var headerList = new List<string>(1);
headerList.Add(header.Value);
m_headers[header.Key] = headerList;
}
}
Solution
public ArmoredOutputStream(Stream outStream, IDictionary<string, string> headers)
: this(outStream)
{
foreach (var header in headers)
SetHeader(header.Key, header.Value);
}
Metadata
Metadata
Assignees
Labels
No labels