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

LibHTTP: Propagate OOM errors from HttpRequest::to_raw_request()

This commit is contained in:
Linus Groh 2023-03-09 14:51:20 +00:00
parent f068ddb79f
commit d0ecd81888
3 changed files with 20 additions and 20 deletions

View file

@ -57,7 +57,7 @@ public:
void set_body(ByteBuffer&& body) { m_body = move(body); }
DeprecatedString method_name() const;
ByteBuffer to_raw_request() const;
ErrorOr<ByteBuffer> to_raw_request() const;
void set_headers(HashMap<DeprecatedString, DeprecatedString> const&);