1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 01:58:12 +00:00

LibHTTP: Make HTTPRequest::from_raw_request() take a ReadonlyBytes

This allows us to get rid of some ByteBuffer::wrap() usage.
This commit is contained in:
Andreas Kling 2020-12-19 17:38:33 +01:00
parent e517505e35
commit 48d74c5356
5 changed files with 6 additions and 6 deletions

View file

@ -30,7 +30,7 @@
extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size)
{
auto request_wrapper = HTTP::HttpRequest::from_raw_request(ByteBuffer::wrap(const_cast<u8*>(data), size));
auto request_wrapper = HTTP::HttpRequest::from_raw_request(ReadonlyBytes { data, size });
if (!request_wrapper.has_value())
return 1;