summaryrefslogtreecommitdiff
path: root/Applications/Browser/DownloadWidget.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-06-13 22:19:34 +0200
committerAndreas Kling <kling@serenityos.org>2020-06-13 22:20:37 +0200
commit1678aaa5550ebf8d89b83a762fa03c2613b30916 (patch)
tree79c980f459d8d379987431c209251f073f34ea4c /Applications/Browser/DownloadWidget.cpp
parentd9ece296f0a7a0e5c293c9f87303da4c57b5d4c3 (diff)
downloadserenity-1678aaa5550ebf8d89b83a762fa03c2613b30916.zip
ProtocolServer+LibProtocol: Propagate HTTP status codes to clients
Clients now receive HTTP status codes like 200, 404, etc. Note that a 404 with content is still considered a "successful" download from ProtocolServer's perspective. It's up to the client to interpret the status code. I'm not sure if this is the best API, but it'll work for now.
Diffstat (limited to 'Applications/Browser/DownloadWidget.cpp')
-rw-r--r--Applications/Browser/DownloadWidget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Applications/Browser/DownloadWidget.cpp b/Applications/Browser/DownloadWidget.cpp
index b03cd332bb..69d53f9c7d 100644
--- a/Applications/Browser/DownloadWidget.cpp
+++ b/Applications/Browser/DownloadWidget.cpp
@@ -60,7 +60,7 @@ DownloadWidget::DownloadWidget(const URL& url)
m_download->on_progress = [this](Optional<u32> total_size, u32 downloaded_size) {
did_progress(total_size.value(), downloaded_size);
};
- m_download->on_finish = [this](bool success, auto& payload, auto payload_storage, auto& response_headers) {
+ m_download->on_finish = [this](bool success, auto& payload, auto payload_storage, auto& response_headers, auto) {
did_finish(success, payload, payload_storage, response_headers);
};