SSL SCT/OCSP: small fixes by robin; mostly update comments.

SetMime now only works on the first call (as it was documented) and
unused code was used from one of the x.509 functions.
This commit is contained in:
Johanna Amann 2017-08-01 16:29:16 -07:00
parent db15773c09
commit d5678418da
7 changed files with 23 additions and 11 deletions

View file

@ -294,7 +294,7 @@ void File::SetReassemblyBuffer(uint64 max)
bool File::SetMime(const string& mime_type)
{
if ( mime_type.empty() || bof_buffer.size != 0 )
if ( mime_type.empty() || bof_buffer.size != 0 || did_metadata_inference )
return false;
did_metadata_inference = true;