1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 19:17:35 +00:00

LibWeb: Handle endings member of options being "native"

This patch passes the options argument to process_blob_parts() and makes
use of the "convert line endings to native" algorithm when the endings
member of options (BlobPropertyBag) is set to "native".
This commit is contained in:
Kenneth Myhra 2022-07-30 10:36:18 +02:00 committed by Linus Groh
parent 516ea4d758
commit bbd9490683
3 changed files with 9 additions and 7 deletions

View file

@ -27,7 +27,7 @@ struct BlobPropertyBag {
};
[[nodiscard]] ErrorOr<String> convert_line_endings_to_native(String const& string);
[[nodiscard]] ErrorOr<ByteBuffer> process_blob_parts(Vector<BlobPart> const& blob_parts);
[[nodiscard]] ErrorOr<ByteBuffer> process_blob_parts(Vector<BlobPart> const& blob_parts, Optional<BlobPropertyBag> const& options = {});
class Blob
: public RefCounted<Blob>