mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-03-25 23:06:11 +00:00
Starting a gemini request creates a pipe for the output stream for the response, and a Core::Stream::File object is created from that pipe. Previously, the length of the response was computed by calling output_stream.size() which used lseek on the file descriptor. Doing that returned an error from lseek. Computing the value by counting the received bytes (via Gemini::Job::response_length) avoids that crash.
2.2 KiB
2.2 KiB