mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-02 22:55:23 +00:00
AK: Remove infallible version of StringBuilder::to_byte_buffer
Also drop the try_ prefix from the fallible function, as it is no longer needed to distinguish the two.
This commit is contained in:
@@ -72,7 +72,7 @@ ErrorOr<ByteBuffer> HttpRequest::to_raw_request() const
|
||||
TRY(builder.try_append((char const*)m_body.data(), m_body.size()));
|
||||
}
|
||||
TRY(builder.try_append("\r\n"sv));
|
||||
return builder.try_to_byte_buffer();
|
||||
return builder.to_byte_buffer();
|
||||
}
|
||||
|
||||
Optional<HttpRequest> HttpRequest::from_raw_request(ReadonlyBytes raw_request)
|
||||
|
||||
Reference in New Issue
Block a user