From ade8f285d074aee51360ed89a3eba06cdf150c05 Mon Sep 17 00:00:00 2001 From: Alexander Prinzhorn Date: Mon, 11 May 2020 12:00:38 +0200 Subject: [PATCH] Update mime-typed-buffer.md (#23384) I think this should be aligned with `StringProtocolResponse`. At least the `charset` was missing from the docs. https://www.electronjs.org/docs/api/protocol#protocolregisterbufferprotocolscheme-handler-completion > should be called with either a Buffer object or an object that has the data, mimeType, and charset properties. --- docs/api/structures/mime-typed-buffer.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/api/structures/mime-typed-buffer.md b/docs/api/structures/mime-typed-buffer.md index 470dd3a3f7d7..494de5172008 100644 --- a/docs/api/structures/mime-typed-buffer.md +++ b/docs/api/structures/mime-typed-buffer.md @@ -1,4 +1,5 @@ # MimeTypedBuffer Object -* `mimeType` String - The mimeType of the Buffer that you are sending. +* `mimeType` String (optional) - MIME type of the buffer. +* `charset` String (optional) - Charset of the buffer. * `data` Buffer - The actual Buffer content.