diff options
Diffstat (limited to 'Userland/Libraries/LibHTTP/Job.cpp')
-rw-r--r-- | Userland/Libraries/LibHTTP/Job.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibHTTP/Job.cpp b/Userland/Libraries/LibHTTP/Job.cpp index 4ae7724a9d..a15e8ddb90 100644 --- a/Userland/Libraries/LibHTTP/Job.cpp +++ b/Userland/Libraries/LibHTTP/Job.cpp @@ -70,8 +70,8 @@ static ErrorOr<ByteBuffer> handle_content_encoding(ByteBuffer const& buf, Deprec } else if (content_encoding == "br") { dbgln_if(JOB_DEBUG, "Job::handle_content_encoding: buf is brotli compressed!"); - auto bufstream = TRY(FixedMemoryStream::construct({ buf.data(), buf.size() })); - auto brotli_stream = Compress::BrotliDecompressionStream { *bufstream }; + FixedMemoryStream bufstream { buf }; + auto brotli_stream = Compress::BrotliDecompressionStream { bufstream }; auto uncompressed = TRY(brotli_stream.read_until_eof()); if constexpr (JOB_DEBUG) { |