summaryrefslogtreecommitdiff
path: root/Userland/Services/RequestServer/GeminiRequest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Userland/Services/RequestServer/GeminiRequest.cpp')
-rw-r--r--Userland/Services/RequestServer/GeminiRequest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Services/RequestServer/GeminiRequest.cpp b/Userland/Services/RequestServer/GeminiRequest.cpp
index 0ec84e7387..048338f30e 100644
--- a/Userland/Services/RequestServer/GeminiRequest.cpp
+++ b/Userland/Services/RequestServer/GeminiRequest.cpp
@@ -21,7 +21,7 @@ GeminiRequest::GeminiRequest(ConnectionFromClient& client, NonnullRefPtr<Gemini:
ConnectionCache::request_did_finish(url, socket);
});
if (auto* response = m_job->response()) {
- set_downloaded_size(MUST(const_cast<Core::Stream::File&>(this->output_stream()).size()));
+ set_downloaded_size(MUST(m_job->response_length()));
if (!response->meta().is_empty()) {
HashMap<DeprecatedString, DeprecatedString, CaseInsensitiveStringTraits> headers;
headers.set("meta", response->meta());