diff options
author | Andreas Kling <kling@serenityos.org> | 2020-06-13 22:19:34 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-06-13 22:20:37 +0200 |
commit | 1678aaa5550ebf8d89b83a762fa03c2613b30916 (patch) | |
tree | 79c980f459d8d379987431c209251f073f34ea4c /Userland/pro.cpp | |
parent | d9ece296f0a7a0e5c293c9f87303da4c57b5d4c3 (diff) | |
download | serenity-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 'Userland/pro.cpp')
-rw-r--r-- | Userland/pro.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/pro.cpp b/Userland/pro.cpp index 3ab6590cb8..fcad52f95a 100644 --- a/Userland/pro.cpp +++ b/Userland/pro.cpp @@ -78,7 +78,7 @@ int main(int argc, char** argv) previous_downloaded_size = downloaded_size; prev_time = current_time; }; - download->on_finish = [&](bool success, auto& payload, auto, auto&) { + download->on_finish = [&](bool success, auto& payload, auto, auto&, auto) { fprintf(stderr, "\033]9;-1;\033\\"); fprintf(stderr, "\n"); if (success) |