diff --git a/Userland/Services/RequestServer/GeminiRequest.cpp b/Userland/Services/RequestServer/GeminiRequest.cpp index 0ec84e7387e..048338f30ed 100644 --- a/Userland/Services/RequestServer/GeminiRequest.cpp +++ b/Userland/Services/RequestServer/GeminiRequest.cpp @@ -21,7 +21,7 @@ GeminiRequest::GeminiRequest(ConnectionFromClient& client, NonnullRefPtrresponse()) { - set_downloaded_size(MUST(const_cast(this->output_stream()).size())); + set_downloaded_size(MUST(m_job->response_length())); if (!response->meta().is_empty()) { HashMap headers; headers.set("meta", response->meta());